thread.sleepTicks

Syntax thread.sleepTicks (duration)

Params duration is an integer, the number of ticks (sixtieths of a second) that you wish the thread to sleep.

Action Puts the current thread to sleep for the indicated duration.

Returns True (when the thread wakes up).

Examples thread.sleepTicks (60) //sleep for 1 second

   » true

Notes The thread that calls this verb can be awakened by another thread before the specified sleep time has elapsed. The verb will still return true.

It is usually not a good idea to call this verb from an agent script; all other agents run in the same thread, and thus will not run until the thread is awakened. To specify the amount to time to wait before calling an agent script again, use the clock.sleepFor verb.

This verb is new in Frontier 6.1.

See Also thread.sleepFor

thread.sleep

clock.sleepFor

Discuss