How to close a gate again after used?

i’m trying to make my character teleport into a bush pressing E in a trigger box, and getting out releasing E in another trigger box behind it, but ,after the first use, the teleportation continues outside of the trigger, returnig to the same points when i push E.

How can i close the gate again? not permanently, because the character can repeat the action to evade moving objects on the road.

for your situation i would advise abandoning your current methodology which uses the level bp and instead use a method which implements an actor that can be reused. so instead of what you currently have you would create a actor bp then add in a box collision, a bush mesh, and a scene component. then on overlap enable input to the actor, on end overlap disable input, and when E is pressed you have the teleport to the scene component. this should solve you issue and will enable you to just place the actor anywhere you want to have one of these bushes without having to create more script.

this is all based on what youve written, though you never showed how you plan to teleport the player back into the play area. also your explanation was not very clear so its hard to know exactly what your after.

below is an example of what i was talking about.

the first picture shows the components used. the scenehidden is where the character will be when hidden and is shown as the raptor billboard on the right, the other scene component is where the player will teleport on the second E press to unhide.

the second picture shows the script needed. this consists of the top sections that enable and disable input to the actor based on the player character overlapping. the second part is the input event which just selects the target destination and teleports the player to the location. again the locations are based on the scene components.

there are a few things left for you to fill in in this example such as the dest rotation and if you want to disable the characters movement while hidden.

Oh, Thank you. I’m going to test this.

Worked perfectly. I’ve spent three hours trying to figure out. :smiley: