31 July 2019

18 August 2015

Corrade can query primitive shapes using the getprimitiveshapedata command.

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitiveshapedatagroup, password, item, datainteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "getprimitiveshapedata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Vendor",
            // searches in a 5m range
            "range", "5",
            // returns the material and primitive type
            "data", wasListToCSV(
                [
                    "Material",
                    "PCode"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

The data parameter follows the ConstructionData structure and sub-structures.

Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.

Notes