How do you stop a sound in blue print activated by a trigger

I have a blueprint that has just two nodes. OnactorBeginOverlap connected to play sound 2d
Works great but when i leave the trigger it keeps playing.
thanks

1 Like

Make a OnActorEndOverlap node then connect it to an End Audio node (i think it’s called something like that). After that connect your audio reference to the End Audio node and that is it!

not finding anything close to End Audio

Ok it wasn’t called end audio but here you go. This should work

1 Like

Thank you for your Event graph shot! Looks simple however can you tell me how I can get a handle on how to find these commands?
For instance your when i type in OnActorEndOverlap (TriggerVolume) node i get this

Sorry but I’m a newbee

When i try to drag in my sound wav from the persistent level as your note suggest i get this.

I am upgrading to 4.20.2 from 4.19.2 maybe this is my problem

Step 1. Drag your sound from the content library to your map anywhere.
Step 2. Click on said audio file and disable auto play.
Step 3. While the audio file is still selected go to your blueprint then right click and set a reference of the audio file in the blueprint
Step 4. Follow instructions uploaded in my photo above

Hope this helps!

Also when i get home i will be able to post a detailed step by step instruction if you like

That would be awesome if you have the time! I cant wait to get more of a grip on this. Its hard enough learning the syntax let alone how to find it once you know what you want.
Thanks for your help Banzuke!

I think I have everything other then the target audio component. Can you please tell me how to grab it?
thanks

Grab your sound reference and drag out a wire. Then search play. Select the play node wich sgould be under the audio tab. The node should look exactly like in my picture where under play it says target is audio component. Same goes for the stop node

ok i now have the Event graph as you show. The sound loop starts up when I overlap the trigger box however it doesn’t stop when I back out of the trigger box

I do notice something. My play has a start time and yours don’t

Although i never it it to work this way I did get it working with Override Attenuation and fading in as i get closer. This works great. I sill would like to know why it did not work with nodes.
Thanks for all your assistance on this Banzuke!

It’s great that you found another way! I still created the video tutorial in hopes of providing you a simpler solution and if anyone else needs the help.

I just don’t get this. I have no problem activation the sound just cant get it to stop

See your OnActorEnd overlap node is blue. It should be red. Make sure that while creating the node you have the trigger box selected and follow the instructions in the video closely

SWEET!! THANK YOU!