Portal/ teleporting activated by button? (Beginner)

I am having some issues making my portal system link to a button press?

As a beginner, I’ve been following a lot of tutorials to help my game development.

I created a button pressure plate and a portal door and am trying to link them, however I am not making very good progress and cannot figure it out myself.
(Button + logic!)


For the Portal, I originally followed this tutorial, however I altered the code to try and link it to the button so it is a bit different to this original video :weary:



Like in the video, this does not work and the portal doesn’t activate. I’m not really sure how to tackle this so any and all help is greatly appreicated! :v: :heart:

Hey all! I figured this out (but slightly differently) so I wanted to leave an update in case anyone else find this and is stuck with the same problem!
Rather than a pressure plate button, I changed it a a UI widget button press which was … probably more hassle in hindsight but it works well for my game so it was worth it! (:

Wiget Code:


For this interact button, it has to have multiple purposes: interact with Dewey (NPC), portal ect. so the code is a bit messy- for this portal you wouldn’t have to include the sequencer, just the interact portal node.

Character Interact Code:

(character interacting and going to a BPI)

BPI:

Portal Code:


(this parts just the tutorial!)

And that’s everything! If you found this helpful, you’re welcome! I’m still having some issues with widgets, such as linking it to my inventory ( How to change input from key to widget button? (beginner!) - Programming & Scripting / Blueprint - Epic Developer Community Forums (unrealengine.com) but if I figure that out I’ll update that thread as well. (: :v:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.