Stop Audio Loop Playback Based on Dynamic Audio Duration

34 Views Asked by At

I have an audio cue that loops indefinitely. The idea is that for as long as the target actor is overlapping a sphere component, the audio will play indefinitely, randomly looping through audio waves. On end overlap, I would like the audio to stop, but complete the last loop.

I tried using the duration concept here with a Delay Stop node. (https://forums.unrealengine.com/t/getting-duration-of-audio-component-4-7/308302/6)

However, since the loop is set indefinitely, it will continue to play. Below is the audio cue and the blueprint snippet that runs it. The audio component is set as a variable on Begin Play as GlitchSounds.

enter image description here

0

There are 0 best solutions below