Play Sequenced Dialogue

Hi,

I have an actor that must play a sequence of dialogues.

Basically, setOfDialogue is a structure with a context, the dialogue and the target that should play it (location).

It works great but I didn’t find any way to know if the previous dialogue as finished playing… So I don’t know when I should start the next one… Do I have to set Manually each dialogue length so that I can “wait for second”? …

Is there any way to know that?

Thanks :3

try SpawnDialogue, instead of PlayDialogue, it returns an AudioComponent reference, which allows you to check if it IsPlaying. AudioComponents also allow you to use Stop, so you can allow the player to skip a dialogue before it completes.

But isn’t that expensive to spawn an audiocomponent for each dialogue I have? There are no better solution?

you will only be playing each dialogue one at a time, and its “fire and forget” which means it deletes itself when complete. its not expensive.

That’s nice, will try that so, thx <3