31 July 2019

19 May 2015

The getprimitiveinventorydata command can be used to query items inside a primitive's inventory by following the InventoryItem structure.

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitiveinventorydatagroup, password, item, entity, datainteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // gets information about the
            // "sit" script inside a primitive
            // named "Chair.
            "command", "getprimitiveinventorydata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("Chair"),
            "range", 5,
            "entity", wasURLEscape("sit"),
            "data", wasListToCSV(
                [
                    "AssetType",
                    "CreatorID"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.

Notes