31 July 2019

19 May 2015

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.

CommandRequired ParametersRequired Corrade PermissionsExample
getscriptrunninggroup, password, item, entityinteract
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)
        ]
    )
);
ParameterDescription
itemThe name or UUID of the primitive to search the script for.
entityThe name or UUID of the script inside the primitive.
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
selectionattached, 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.