The problem is that when I leave the volume and go back inside just after, while the sound if still being played, il launches a second time the wav file and I have twice the same audio being read… and if I move out and in again it will be three times
The problem with the “do once” is that he will never hear the sound again I want each time that the player enters the trigger volume that the sound gets played, but just never more than once…
That’s not a complicated fix. So what you will need to do is reset your node once you leave the volume, but what you are most worried about is not having the audio play more than once right? One example on how to do that is to set a timer to reset a variable allowing you to play the sound again once it has been reset, but more specifics may be needed to figure out exactly what you need:
Unfortunatly, when I enter the volume nothing happens, no sound is played … I have even added a “printstring” after the “claerandinvalidatetimerbyhandle” to check if the is going to be displayed, but nothing is displayed…
Help
Edit : It works !!! The boolean had to put be by default to “no”
You seem to be using a full actor overlap event. Does the actor have a collision component (box, sphere, capsule). Does the actor & component have “Generate Overlap Events” turned on?
I personally prefer to add a box trigger and use on component overlap.