Update a Primitive's Inventory

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.

19 May 2015

  • Release 8.12 - range is now an optional parameter and not required to locate the item.

14 December 2014

  • Release 7.28 - added the take action.
updateprimitiveinventory (Commands)
TypeCorrade progressive command
Commandupdateprimitiveinventory
DescriptionThe updateprimitiveinventory command can add or remove items from a primitive's inventory.
Permissionsinteract
Parametersgroup, password, item, entity, action
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The updateprimitiveinventory command can add or remove items from a primitive's inventory.

Command Required Parameters Required Corrade Permissions Example
updateprimitiveinventory group, password, item, entity, action interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Add a "README" notecard from the bot's
            // inventory to a primitive named "Package".
            "command", "updateprimitiveinventory",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "/My Inventory/Objects/Package",
            "range", 5,
            "entity", "README",
            "action", "add"
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
Parameter Possible Value Optional Parameter Description
action add Add an entity to the primitive.
remove Remove an entity from the primitive.
take Remove an entity from the primitive and place it in Corrade's inventory.
folder The UUID of the folder where Corrade should take the item.

Depending on context, entity can be:

  • In the context of the add action, entity can the path to an inventory item or an UUID representing an item in the bot's inventory.
  • In the context of the remove and take action, entity can be the name or UUID representing an item in the primitive's inventory.

secondlife/scripted_agents/corrade/api/progressive/commands/updateprimitiveinventory.txt ยท Last modified: 2017/02/22 18:29 (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.