31 July 2019

28 July 2018

Corrade can be made to grab a primitive in a given range touching the object using precise parameter. Note that Corrade does not mind whether the primitive is in a link-set or an attachment. It will touch any primitive regardless of where it is.

CommandRequired ParametersRequired Corrade PermissionsExample
clickgroup, password, iteminteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "click",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // a primitive name or uuid
            "item", "helmet",
            // 5 meters
            "range", "5",
            "texture", wasURLEscape("<0.5, 0.2, 0.6>"),
            "surface", wasURLEscape("<0.1, 0.2, 0.5>"),
            "normal", wasURLEscape("<0.7, 0.3, 0.1>"),
            "binormal", wasURLEscape("<0.2, 0.1, 0.1>"),
            "position", wasURLEscape("<53, 154, 2689>"),
            // touch the second face
            "face", "2"
        ]
    )
);

item can be the name of an object or the UUID of an object.

Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
textureAn LSL Vector3The texture coordinates to touch.
surfaceAn LSL Vector3The surface coordinates to touch.
faceAn integerThe index of the face to touch.
positionAn LSL Vector3The region coordinates of the position to touch.
normalAn LSL Vector3The surface normal of the position to touch.
binormalAn LSL Vector3The surface binomial of the position to touch.
selectionattached, rezzed or all (default: all)Either attached, rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively.

Notes