Play one track per event without sound overlap?

Hi all, Im trying to play specific sound when I call an event. but when I call the next event I want to stop whatever is playing and start new track. I build this BP it work but Im getting these errors. I tried to add is valid node but it didn’t work?

Hey @aweiglhseldec how are you?

I think the easiest way to do this, is to add an audio component to your blueprint and then manipulate it in each event you want to trigger.

You will end with something like this at the start of each event that plays a new sound:

As you can see, you stop the current sound first, then replace the sound to reproduce, and after that you play the new sound.

Let me know if this worked!