Difference between revisions of "LlSetScriptState"

From Second Life Wiki
Jump to navigation Jump to search
Line 12: Line 12:
*[http://forums.secondlife.com/showthread.php?t=172251 Bug: Script inventory not found error, but script is there]
*[http://forums.secondlife.com/showthread.php?t=172251 Bug: Script inventory not found error, but script is there]
|constants
|constants
|examples=llSetScriptState(llGetScriptName(),FALSE);
|examples=
<pre>//Stops the Script, and Does Nothing Further until rerez, or invoked with TRUE, in another script
llSetScriptState(llGetScriptName(),FALSE);</pre>


Stops the Script, and Does Nothing Further until rerez, or invoked with TRUE, in another script
<pre>//Starts Another Script
 
llSetScriptState("somescript",TRUE);</pre>
llSetScriptState("somescript",TRUE);
 
Starts Another Script
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 13:29, 24 March 2007

Summary

Function: llSetScriptState( string name, integer run );

Set the running state of the script name.

• string name a script in the inventory of the prim this script is in
• integer run boolean, if FALSE the script will be disabled.

Caveats

All Issues ~ Search JIRA for related Bugs

Examples

//Stops the Script, and Does Nothing Further until rerez, or invoked with TRUE, in another script
llSetScriptState(llGetScriptName(),FALSE);
//Starts Another Script
llSetScriptState("somescript",TRUE);

See Also

Functions

•  llGetScriptState
•  llResetOtherScript

Deep Notes

Search JIRA for related Issues

Signature

function void llSetScriptState( string name, integer run );