Grab a Primitive

19 May 2015

  • Release 8.42 - added.
grab (Commands)
TypeCorrade progressive command
Commandgrab
DescriptionCorrade can be made to grab a primitive in a given range touching the object using precise parameter.
Permissionsinteract
Parametersgroup, password, item, texture, surface, normal, binormal, position, face
Last ChangesRelease 8.42 - added.

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.

Command Required Parameters Required Corrade Permissions Example
grab group, password, item, texture, surface, normal, binormal, position, face interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "grab",
            "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 Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
Parameter Possible Value Description
texture An LSL Vector3 The texture coordinates to touch.
surface An LSL Vector3 The surface coordinates to touch.
face An LSL Vector3 The index of the face to touch.
position An LSL Vector3 The region coordinates of the position to touch.
normal An LSL Vector3 The surface normal of the position to touch.
binormal An LSL Vector3 The surface binomial of the position to touch.

secondlife/scripted_agents/corrade/api/progressive/commands/grab.txt ยท Last modified: 2017/02/22 18:29 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.