How to make the sound turn on when the player crosses the TriggerBox, and when the player crosses the TriggerBox again, the sound will turn off.

How to make the sound turn on when the player crosses the TriggerBox, and when the player crosses the TriggerBox again, the sound will turn off.

At the moment, I have a sound that turns on when the player is in the TriggerBox and turns off when he leaves.

Hey @Boo_Dust

there is a node called FLIPFLOP. If you place this after OnComponentBeginOverlap and connect Play and Stop you should get your desired behaviour.

1 Like

Thank you, you have helped me a lot :pray:

1 Like

How do you make it so that when you go through one trigger box, the sound turns on, you go through the second trigger box and the sound turns off?

Hey @Boo_Dust

you can create a blueprint of type actor wher you use 2 trigger boxes in one blueprint. Then just use one for starting and the other one for stoppping the sound :slight_smile: You just have to ensure to use the same sound (RAIN) with both trigger boxes.

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