So in my script I have this.
dcomisariofinal.Start();
ofortbot.Animate(0, 1, eOnce, eBlock);
And I want the animation to start after the dialogue is finished, however, when I do this, the animation plays at the same time the dialogue starts. How do I make the game wait until the dialogue is finished to play the animation?
Dialog options generally go to the bottom of the function queue and are last to run.
You'll need to put the animation code within the dialog options itself when selecting an option that causes the animation to start.
I tried it but it says ofortbot is an undefined token
you must name objects by their ID not by name when you include it within a dialog option..
eg
ofortbot.Animate(0, 1, eOnce, eBlock); // will not run as it does not know what ofortbot is.
object[3].Animate(0, 1, eOnce, eBlock); // will know how to animate an object by its ID number.
In dialogs you have to reference objects by number. for instance if ofortbot is object number 1
object[1].Animate(0, 1, eOnce, eBlock);
Thanks dudes