31 July 2019

19 May 2015

The setscriptrunning command can be used to set a script's running state inside a primitive to start or stop depending on the action parameter.

CommandRequired ParametersRequired Corrade PermissionsExample
setscriptrunninggroup, password, item, entity, actioninteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // starts the script called
            // "sit" in a "Chair" object
            "command", "setscriptrunning",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("Chair"),
            "range", 5,
            "entity", wasURLEscape("sit"),
            "action", "start",
            "callback", wasURLEscape(URL)
        ]
    )
);
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.

Notes