Reset Scripts in Primitives

31 July 2019

  • C10 - added the selection optional parameter.

8 April 2017

  • Release 9.161 - added.
scriptreset (Commands)
TypeCorrade progressive command
Commandscriptreset
DescriptionThe scriptreset command can be used to reset a specific or all scripts inside a primitive.
Permissionsinventory
Parametersgroup, password, item
Last ChangesRelease 9.161 - added.

The scriptreset command can be used to reset a specific or all scripts inside a primitive.

Command Required Parameters Required Corrade Permissions Example
scriptreset group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // resets the script called
            // "sit" in a "Chair" object
            "command", "scriptreset",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("Chair"),
            "range", 5,
            "entity", wasURLEscape("sit"),
            "callback", wasURLEscape(URL)
        ]
    )
);
Parameter Possible Value Second Parameter Possible Value Third Parameter Possible Value Description
all False (default) item The name or UUID of a primitive. entity The name or UUID of a script inside a primitive. Reset a single script indicated by entity inside a primitive indicated by item
True Resets all the scripts in the primitive indicated by item.
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.

secondlife/scripted_agents/corrade/api/commands/scriptreset.txt ยท Last modified: 2020/09/04 06:44 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


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