Difference between revisions of "LlSleep"

From Second Life Wiki
Jump to navigation Jump to search
m (Replaced old <LSL> block with <source lang="lsl2">)
Line 8: Line 8:
|caveats
|caveats
|constants
|constants
|examples=<lsl>default
|examples=<source lang="lsl2">default
{
{
     state_entry()
     state_entry()
Line 16: Line 16:
         llSay(0,"I feel so refreshed!");
         llSay(0,"I feel so refreshed!");
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llSetTimerEvent]]}}
|also_functions={{LSL DefineRow||[[llSetTimerEvent]]}}

Revision as of 11:47, 22 January 2015

Summary

Function: llSleep( float sec );

Puts the script to sleep for sec seconds. The script will not do anything during this time.

• float sec

Examples

default
{
    state_entry()
    {
        llSay(0,"I going to take a nap for 5 seconds.");
        llSleep(5.0);
        llSay(0,"I feel so refreshed!");
    }
}

See Also

Events

•  timer

Functions

•  llSetTimerEvent

Deep Notes

Signature

function void llSleep( float sec );

Haiku

Clouds drift,streams flow on.
Yet in here, time holds its breath.
The mind disconnects.