LSL Wiki Mirror 10-5-2006: llSleep

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llSleep(float sec)

Puts the script to sleep for sec seconds. During this time, the current event will not be exited, no other events will be processed.
(As a comment notes, new events are still queued, but it looks like only one event of each type will actually queue while the script sleeps(/delays?). Anyone know more about that?)

llSleep has its uses, but can be inconvenient. See llSetTimerEvent and the timer() event for an alternative that allows other events to be executed while waiting.

A quick test shows the time actually slept seems to differ up to about .1 seconds from the requested amount.

See ScriptDelay for more information on how llSleep affects script execution.


Functions
There are 2 comments on this page. [Display comments/form]