Set Script Running State

19 May 2015

  • Release 8.12 - range is now an optional parameter and not required to locate the item.
setscriptrunning (Commands)
TypeCorrade progressive command
Commandsetscriptrunning
DescriptionThe setscriptrunning command can be used to set a script's running state inside a primitive to start or stop depending on the action parameter.
Permissionsinteract
Parametersgroup, password, item, entity, action
Last ChangesRelease 8.12 - range is now an optional parameter and not required to locate the item.

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. Note that scripts that are added to a primitive using the give command have to be started using this command.

Command Required Parameters Required Corrade Permissions Example
setscriptrunning group, password, item, entity, action interact
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 Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.

secondlife/scripted_agents/corrade/api/progressive/commands/setscriptrunning.txt ยท Last modified: 2017/02/22 18:28 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.