How to have event happen after sound has finished

Hello. I’m doing some dialogue for my game and was wondering if there is a way for the engine to see that the dialogue sound has finished and go to the next one. At the moment I’m just using a delay, which works but it very tedious to do for each line of dialogue as they are all different lengths. I’m using a umg widget and dialogue nodes which make this easier, but still.

Is there any way to do this? I just need to have it indicated once to have it go throughout the rest of the dialogue

Not at my computer right now but maybe there is a way to get the sound and query it’s length? Then set that into a variable and plug that into a delay

Promote your sound to a variable and you can get its duration:
image

Thank you so much, This works :slight_smile:

Also, if you’re using an audio component, you can bind an event to OnAudioFinished.

For Dialogue Audio, you can use “Spawn Dialogue 2D” instead and that’ll give you a component so that you can bind to OnAudioFinished. But the dialogue component would usually need to be attached to an actor.