Teleporter sending player to wrong actor

Here’s a video showcasing the problem I’m having

I have multiple buildings and need the player to be able to walk up to each door, press E, and get teleported to a different location. Pressing the same button when overlapping the door should then send them back to the original location.

The issue shown in the video is that after going from A → B → A and then C → D → C, you can no longer go from A → B - it becomes A → D → C

I originally used the teleport player blueprint but was having issues getting it to work at all before switching to SetActorLocation and adding the FlipFlop node - which worked more but now has this issue.

I have a trigger box stretched out to reach the corresponding doors and each door has an actor whose location is used to decide where to teleport the player. I have 4 buildings total that I need to able to teleport to the interiors of.



I’ve only used this program for a few weeks, so any help is super appreciated!
Sorry if I didn’t explain the issue very well!

The reason this happens is you’ve put your action (E key/interact key) in those location/teleporter blueprints (which you generally shouldn’t, but whatever). You then open the “gate” triggers when the player enters/overlaps those zones, but you never actually CLOSE them. Therefore, every gate/teleporter is always active and teleporting you with E after you’ve reached it once. So the simplest solution would be to close the gates “On Actor End Overlap”, then it would work fine.

I would advise to think about making a simple interact system for your player character, though.

2 Likes

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