From Second Life Wiki
SetScriptState
llSetScriptState
Description
Function: llSetScriptState( string name, integer run );
Set the running state of the script name.
| • string
| name
| –
| a script in the prim's inventory
|
|
| • integer
| run
| –
| boolean, if FALSE the script will be disabled.
|
|
Caveats
- If name is missing from the prim's inventory or it is not a script then an error is shouted on DEBUG_CHANNEL.
- Cannot be used to restart a script that has encoutered a run-time error.
- The script appears to stop when its time slice ends, not sooner. If a script tries to stop itself then some LSL code following the llSetScriptState call may be executed before the script stops.
Deep Notes
Issues
| • Open Bug
| SVC-1853[c]
|
| Scripts deactivated by llSetScriptState are reset when the region is reset, when they are taken into inventory and re-rezzed and when crossing sim boundaries.
|