31 July 2019

19 May 2015

The getprimitiveinventory command can be used to retrieve the names and UUIDs of items inside a primitive inventory.

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitiveinventorygroup, password, iteminteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // gets the inventory of the
            // object named "Chair"
            "command", "getprimitiveinventory",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("Chair"),
            "range", 5,
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.

The return value will be stored in the value of the key inventory as a CSV list of names by UUIDs.

Notes