Difference between revisions of "LlGetScriptState"

From Second Life Wiki
Jump to navigation Jump to search
Line 5: Line 5:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text={{HoverText|boolean|TRUE or FALSE}} that is {{LSLG|TRUE}} if script '''name''' is running.
|return_text={{HoverLink|boolean|TRUE or FALSE}} that is [[TRUE]] if the script '''name''' is running.
|spec
|spec
|caveats=*<s>Will not report [[FALSE]] for a script that encountered a {{LSLGC|Error|run-time error}}, which greatly reduces the usefulness of this function.</s> - This doesn't seem to be the case anymore.
|caveats
|constants
|constants
|examples
|examples
Line 18: Line 18:
|also_articles
|also_articles
|notes
|notes
|permission
|history=*There was a time when [[llGetScriptState]] would return [[TRUE]] even if the script had encountered a {{LSLGC|Error|run-time error}}.
|negative_index
|sort=GetScriptState
|sort=GetScriptState
|cat1=Script
|cat1=Script

Revision as of 20:35, 24 April 2008

Summary

Function: integer llGetScriptState( string name );

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.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llSetScriptState
•  llResetOtherScript

Deep Notes

History

Search JIRA for related Issues

Signature

function integer llGetScriptState( string name );