Get Script Running State
getscriptrunning (Commands) |
Type | Corrade progressive command |
Command | getscriptrunning |
Description | The getscriptrunning command can be used to query a script inside a primitive and return a running key with the value set to True if the script is running or False otherwise. |
Permissions | interact |
Parameters | group , password , item , entity |
Last Changes | Release 8.12 - range is now an optional parameter and not required to locate the item. |
The getscriptrunning
command can be used to query a script inside a primitive and return a running
key with the value set to True
if the script is running or False
otherwise.
Command | Required Parameters | Required Corrade Permissions | Example |
getscriptrunning | group , password , item , entity | interact | llInstantMessage(CORRADE,
wasKeyValueEncode(
[
// check whether the "sit"
// script in the "Chair"
// is currently running
"command", "getscriptrunning",
"group", wasURLEscape(GROUP),
"password", wasURLEscape(PASSWORD),
"item", wasURLEscape("Chair"),
"range", 5,
"entity", wasURLEscape("sit"),
"callback", wasURLEscape(URL)
]
)
);
|
Parameter | Description |
item | The name or UUID of the primitive to search the script for. |
entity | The name or UUID of the script inside the primitive. |
Optional Parameter | Possible Value | Description |
range | A range in meters. | The spherical distance from Corrade in which to locate the item. |
selection | attached , rezzed or all (default: all ) | Either attached , rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively. |