Get Script Running State

31 July 2019

  • C10 - added the selection optional parameter.

19 May 2015

  • Release 8.12 - range is now an optional parameter and not required to locate the item.
getscriptrunning (Commands)
TypeCorrade progressive command
Commandgetscriptrunning
DescriptionThe 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.
Permissionsinteract
Parametersgroup, password, item, entity
Last ChangesRelease 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.