LlGetScriptState: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
No edit summary
 
Strife Onizuka (talk | contribs)
No edit summary
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{LSLFunctionAll|func_id=250|func_sleep=0.0|func_energy=10.0|func=llGetScriptState|return_type=integer|p1_type=string|p1_name=name|func_footnote=Resets TRUE if script name is running|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function/inventory|name|uuid=false|type=script}}
{{LSL_Function
|func_id=250|func_sleep=0.0|func_energy=10.0
|func=llGetScriptState|return_type=integer|p1_type=string|p1_name=name
|func_footnote
|func_desc
|return_text={{HoverLink|boolean|TRUE or FALSE}} that is [[TRUE]] if the script '''name''' is running.
|spec
|caveats
|constants
|examples
|helpers
|also_functions=
{{LSL DefineRow||[[llSetScriptState]]|}}
{{LSL DefineRow||[[llResetOtherScript]]|}}
|also_events
|also_tests
|also_articles
|notes
|history=*There was a time when [[llGetScriptState]] would return [[TRUE]] even if the script had encountered a {{LSLGC|Error|run-time error}}.
|sort=GetScriptState
|cat1=Script
|cat2
|cat3
|cat4
}}

Revision as of 20:35, 24 April 2008

Summary

Function: integer llGetScriptState( string name );
0.0 Forced Delay
10.0 Energy

Returns an integer boolean that is TRUE if the script name is running.

• string name a script in the inventory of the prim this script is in

Caveats

  • If name is missing from the prim's inventory or it is not a script then an error is shouted on DEBUG_CHANNEL.

Examples

See Also

Functions

•  llSetScriptState
•  llResetOtherScript

Deep Notes

History

Signature

function integer llGetScriptState( string name );