How can I ensure a trigger volume only plays a sound once?
Excuse me, I'm pretty new to UE4, but i'm working on a Games Sound project for University.
I have trigger volumes that are playing audio that are located within events in FMOD Studio, however I want the sound to trigger once and once only within one play through.
My blueprint is simply an OnActorBeginOverlap linked to a PlayFmodSound (which references my fmod sound event).
Seems simple in theory, but I can't quite suss it out. Any help would be greatly appreciated.
asked Dec 08 '17 at 12:19 PM in Blueprint Scripting
Use the node 'DoOnce' and plug it in before your PlaySound.
Please note that the 'ResetMyThing' Event is optional, and you do not need to use it. However this would allow you to reset this circuit and have your Sound Play again.
For example: Player opens door, the Sound plays, but cannot be played again.
When the Player closes the door the Reset Event is called, and for the next door opening the sound would play again!
insert a branch after begin overlap and use a boolean variable. Use the false exe to play your sound and then set the variable to true. So on default the variable will be false, the branch will run the false execute and on the next overlapt the branch condition will be true and nothing will happen
Cheers Evil_Fischi ;)
answered Dec 08 '17 at 12:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here