Difference between revisions of "Template:LSL Function"

From Second Life Wiki
Jump to navigation Jump to search
m (sick of having to define ?)
m (Who would have thunk it? Sleep for a frame!)
Line 82: Line 82:
{{{bugs|}}}}}
{{{bugs|}}}}}


{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|* <span id="caveats-sleep"></span> This function causes the script to sleep for {{{func_sleep|}}} seconds. {{{func_sleep_note|}}}|{{#if:{{{func_sleep_note|}}}|* <span id="caveats-sleep"></span> {{{func_sleep_note|}}}}}}}{{#if:{{#var:caveats}}|
{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|* <span id="caveats-sleep"></span> This function causes the script to sleep for {{{func_sleep|}}} seconds. {{{func_sleep_note|}}}|{{#ifexpr:{{{func_sleep_frame|0}}}> 0|* <span id="caveats-sleep"></span> This function causes the script to sleep for {{{func_sleep|}}} {{#ifexpr:{{{func_sleep_frame}}}> 1|frames|frame}}. {{{func_sleep_note|}}}|{{#if:{{{func_sleep_note|}}}|* <span id="caveats-sleep"></span> {{{func_sleep_note|}}}}}}}}}{{#if:{{#var:caveats}}|
{{#var:caveats}}}}{{#if:{{{caveats|}}}|
{{#var:caveats}}}}{{#if:{{{caveats|}}}|
{{{caveats|}}}}}}}
{{{caveats|}}}}}}}
Line 186: Line 186:
{{!}} [[LSL Function ID{{#var:lang}}|Function ID]]
{{!}} [[LSL Function ID{{#var:lang}}|Function ID]]
{{!}}-
{{!}}-
{{!}} {{HoverText|{{{func_sleep|}}}|The number of seconds this script will sleep after executing this function.}}{{#if:{{{func_sleep_note|}}}|{{HoverLink|#caveats-sleep|3=*|2={{{func_sleep_note|}}}}}}}
{{!}} {{HoverText|{{{func_sleep|}}}|The number of seconds this script will sleep after executing this function.}}{{HoverText|{{{func_sleep_frame|}}}|The number of frames this script will sleep after executing this function.}}{{#if:{{{func_sleep_note|}}}|{{HoverLink|#caveats-sleep|3=*|2={{{func_sleep_note|}}}}}}}
{{!}} [[LSL Delay{{#var:lang}}|Delay]]
{{!}} [[LSL Delay{{#var:lang}}|Delay]]
{{!}}-
{{!}}-

Revision as of 21:43, 12 May 2012