Set the running state of the script name.

Syntax

void llSetScriptState( string name, integer running );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string name
a script in the inventory of the prim this script is in
integer running (boolean)
boolean, if TRUE[1] the script will be enabled, if FALSE the script will be disabled

Caveats

Examples

//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);

See also

Functions

Deep notes

Issues

Footnotes

  1. Any value that is not zero/FALSE is treated the same as TRUE. This behavior should not be depended upon.