14 May 2015

10 May 2015

The getavatarsdata returns fields or properties specified in data of all avatars on the current simulator or specified parcel.

CommandRequired ParametersRequired Corrade PermissionsExample
getavatarsdatagroup, password, entity, datainteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // retrieves the visual parameters
            // of all the avatars in a 10m
            // range from Corrade.
            "command", "getavatarsdata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "range",
            "range", 10,
            "data", "VisualParameters",
            "callback", wasURLEscape(URL)
        ]
    )
);

The data parameter can be supplied a CSV list of fields or properties from the libopenmetaverse Avatar structure and the libopenmetaverse Primitive structure.

ParameterPossible ValueSub-ParameterPossible ValueDescription
entityrangerangeA range in meters.Retrieves avatar data for all avatars in the specified range where the range is the length of a versor from Corrade's current position describing a sphere.
parcelpositionAn LSL 3D Vector.Retrieves avatar data for all avatars on the parcel pin-pointed by position.
regionRetrieves avatar data for all avatars on the current region.
avataragentEither an avatar UUID passed to agent or the firstname passed to firstname and lastname passed to lastnameRetrieves avatar data for the specified avatar.
firstname
lastname

Notes