How can I enable and disable a trigger box with another trigger box?

Hi I am working on a little navigation puzzle. In which I would want to enable and disable trigger box.

Like if the player goes on the right in a corridor he will overlap a trigger box activating or deactivating another trigger box and vice versa if he goes on the left.

Thank You

You would have to get references to both trigger boxes an then cast from the one you wish to disable. You can then use the DoOnce node to only trigger this once. Simply disable collision for the trigger box through the disable collision node.

1 Like

It seems that I can’t connect the triggerbox references to the disable collision node.

I’d also like to know how this is done. Could a picture of the blueprint be shown??

Thanks.

Build both collision boxes in an actor class blueprint.
Then drag those blueprints into the world.
Set references between them.
Then you can tell the one to tell the other one to do whatever.