Play/Pause Level Sequence and Audio by Blueprint

Hi!

I would be super thankfull if anybody can help me fixing this little issue:


Setup:
I have a Levelsequence (LP_Sequence) inside my Level , which rotates an Vinyl 3D Model by 360 degree. Autoplay = Off
I have a Blueprint (BP Sound WZ) containing a SoundCue, placed next to it.

I got anBlueprint Button next to the Model, with an “on click” event, that should set the music Volume to “1” by clicking once and to “0” by clicking again. Also the button should start the LP_Sequence as well in a loop and by clicking again, make it stop.


Music:
The music is playing by default right now, and the volume control works, but only one time. After pressing the button a third time, the volume does not get set back to “1”.

In my head, I set the Volume to “0” by “onbeginPlay” and after that can trigger the volume by clicking the button.
But no success :frowning:


Sequence:
The Sequence gets startet, but the Stop/Pause is not working.
I tried “Stop”, “Pause”, “Play Loop 0”.

Thank you for any help,
best Peter

Wouldn’t every click create a brand new sequence and orphan the old one? Classic memory leak :innocent:


Is this what you’re after:

Create it once, reference and then access it.

Yes, it always started a new instance :smiley:
Great! Works perfect! Thank you so much!

1 Like