How to make audio start/pause with the same video trigger?

Was following the Media Framework guide.

I tried setting up identical triggers, but that seems redundant. How would one blueprint this so the audio starts/pauses with the same video trigger?

Right now, it just plays the sound when I activate the trigger, not sure how to link it to the pause.

An answer was here before but I don’t see it.

I apologize for the confusion, the script will start the audio.
But it won’t pause. I’m not sure how to link the blueprint so it pauses on the end trigger event.

Hey man, it was me who answered before, but I wasn´t sure, so I deleted it.
Check if my BP works for you:

Spawn the sound actor at your lvl, anywhere, and uncheck the automatic activation, as shown in this image.

With the sound actor selected, in your lvl blueprint, right mouse and create a reference for it, then, just create the setup below, and activate the audio component or desactivate it as you want.

In this BP, when the player is inside the Trigger BOX (The green one in the first image) the music starts playing, when the player leaves the trigger box, the sound stops.

PS: You can also drag from the audio component and type Play and Stop, instead of activate and desactivate

Hope it helps you!

Thank you, this looks like it’s only for the audio.
I was trying to get the audio and the video to play/pause.

I get an error when I copy the same trigger box and try to cast off of it.

Is there a way to make the trigger play/pause both Audio and Video

well, you could use a sequence or put the video at the end of the bluprint, to play the sound and the video separatly, but at the same time for example.
How is your BP now? did you changed anything from your picture?

check this, worked?

here my friend, hook the nodes :slight_smile:

should work now!

Thank you again for helping. Sequence, that is new to me. It is close, the Audio and video plays, but won’t stop when I leave the trigger box.

no problem! happy to help you!

Oh my god, I missed that. And it works! Thank you so much!

Hi mate, could you please mark your question as resolved? thanks!