From Second Life Wiki
Revision as of 21:18, 26 May 2007 by BamBam Sachertorte
|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
- If DEBUG_CHANNEL. is missing from the prim's inventory or it is not a script then an error is shouted on
- 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.
//Stops the Script, at some non-deterministic time later, until invoked with TRUE, in another script llSetScriptState(llGetScriptName(),FALSE); // Stall until end of time slice llSleep(0.1);
//Starts Another Script llSetScriptState("somescript",TRUE);
function void llSetScriptState( string name, integer run );