Difference between revisions of "LlSleep"

From Second Life Wiki
Jump to navigation Jump to search
 
m (Replaced old <LSL> block with <source lang="lsl2">)
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{LSLFunctionAll|func_id=108|func_sleep=0.0|func_energy=0.0|func=llSleep|p1_type=float|p1_name=sec|func_footnote=Put script to sleep for sec seconds|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=108|func_sleep=0.0|func_energy=0.0
|func=llSleep|p1_type=float|p1_name=sec
|func_footnote
|func_desc=Puts the script to sleep for '''sec''' seconds. The script will not do anything during this time.
|return_text
|spec
|caveats
|constants
|examples=<source lang="lsl2">default
{
    state_entry()
    {
        llSay(0,"I going to take a nap for 5 seconds.");
        llSleep(5.0);
        llSay(0,"I feel so refreshed!");
    }
}</source>
|helpers
|also_functions={{LSL DefineRow||[[llSetTimerEvent]]}}
|also_events={{LSL DefineRow||[[timer]]}}
|also_tests
|also_articles
|notes
|permission
|negative_index
|sort=Sleep
|cat1=Script
|haiku={{Haiku|Clouds drift,streams flow on.|Yet in here, time holds its breath.|The mind disconnects.}}
|cat2
|cat3
|cat4
}}

Revision as of 12:47, 22 January 2015