Author Topic: Wait  (Read 396 times)

Is there any way to pause a script like the command in Lua, wait(seconds);?
I'd really appreciate some help.

Without wax, Tickle

You can't really pause a script, but you can break it into parts with schedules.

Code: [Select]
function partone()
{
     echo("Hello World!");
     schedule(1000,0,parttwo);
}

function parttwo()
{
     echo("!dlroW olleH");
}

A schedule calls another function after a delay (in milliseconds) has passed. This delay will not cause any other functions to stop their execution.