Difference between revisions of "LlSleep"
Jump to navigation
Jump to search
m (LSL llSleep moved to LlSleep) |
m (Examples and extra inofmation in description.) |
||
Line 3: | Line 3: | ||
|func=llSleep|p1_type=float|p1_name=sec | |func=llSleep|p1_type=float|p1_name=sec | ||
|func_footnote | |func_footnote | ||
|func_desc=Put script to sleep for '''sec''' seconds. | |func_desc=Put script to sleep for '''sec''' seconds. The script will not do anything during this time. | ||
|return_text | |return_text | ||
|spec | |spec | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
default | |||
{ | |||
state_entry() | |||
{ | |||
llSay(0,"I going to take a nap for 5 seconds."); | |||
llSleep(5.0); | |||
llSay(0,"I feel so refreshed!"); | |||
} | |||
}</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 15:07, 12 April 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSleep( float sec );108 | Function ID |
0.0 | Forced Delay |
0.0 | Energy |
Put script to sleep for sec seconds. The script will not do anything during this time.
• float | sec |
Caveats
Examples
default { state_entry() { llSay(0,"I going to take a nap for 5 seconds."); llSleep(5.0); llSay(0,"I feel so refreshed!"); } }