Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: The Flayer on October 21, 2017, 11:54:57 PM
-
Hello, I am learning to use WE and I have a question.
It is possible to pause the actions of a script for a definite amount of time?
I tryed to use the "sleep" function but it did not work, the script is not execute at all.
This is an example of what I need:
on "LookAt"
{
actor.GoToObject(this);
actor.Direction = DI_DOWN;
actor.Talk("It's wonderfull.");
sleep(10); ?????
actor.Talk("I'll take it.");
}
Thanks for help
-
Hi,
your script should work but be sure you have to call Sleep() - first letter is upper case - function instead of sleep() because this function od not defined in Wintermute Engine.
-
Thank you a lot!
It works now.
I have to practise more with the script! :)