Difference between revisions of "LlSleep"
Jump to navigation
Jump to search
(sleeping script still pays attention to events) |
m |
||
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=Puts the script to sleep for '''sec''' seconds. The script will not do anything during this time, although triggered events will be queued and executed afterwards. | |func_desc=Puts the script to sleep for '''sec''' seconds. The script will not do anything during this time, although triggered {{LSLGC|Events|events}} will be queued and executed afterwards. | ||
|return_text | |return_text | ||
|spec | |spec | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples=<lsl> | |examples=<lsl>default | ||
default | |||
{ | { | ||
state_entry() | state_entry() |
Revision as of 07:19, 20 October 2008
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 |
Puts the script to sleep for sec seconds. The script will not do anything during this time, although triggered events will be queued and executed afterwards.
• float | sec |
Caveats
Examples
<lsl>default {
state_entry() { llSay(0,"I going to take a nap for 5 seconds."); llSleep(5.0); llSay(0,"I feel so refreshed!"); }}</lsl>