End conversation with required

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

End conversation with required

Post by fkkcloud »

Hello,

As I end the conversation with Continue like below, it execute the command right away without delay. Is this expected?

Code: Select all

required PlayVideo(XXX)@4;
Continue();
User avatar
Tony Li
Posts: 22166
Joined: Thu Jul 18, 2013 1:27 pm

Re: End conversation with required

Post by Tony Li »

Yes. All commands run at the beginning of the sequence unless you specify a different time. Try something like this:

Code: Select all

required PlayVideo(XXX)@4;
Continue()@12; // Assumes video is 8 seconds long.
Or, if PlayVideo() does not call Stop() until it's done:

Code: Select all

required PlayVideo(XXX)@4->Message(Done);
Continue()@Done();
Post Reply