Attach a Primitive from Inventory

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.
attach (Commands)
TypeCorrade progressive command
Commandattach
DescriptionThe attach command allows Corrade to attach multiple (or only one) objects from inventory to their attachment points.
Permissionsgrooming
Parametersgroup, password, attachments
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The attach command allows Corrade to attach multiple (or only one) objects from inventory to their attachment points.

Command Required Parameters Required Corrade Permissions Example
attach group, password, attachments grooming
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "attach",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // skull, mouth are attachment points (see documentation)
            // Helmet and Milk Bottle are object names in the inventory
            // ... You can also use UUIDs for inventory items.
            "attachments", wasListToCSV(
                [
                    "Skull", "/My Inventory/Objects/Helmet",
                    "Mouth", "/My Inventory/Fun Stuff/Milk Bottle"
                ]
            )
        ]
    )
);

The attachment parameter accepts pairs of attachment points and object in inventory. Here is a full list of attachment points:

Point Description
DefaultRight hand if object was not previously attached
ChestChest
SkullSkull
LeftShoulderLeft shoulder
RightShoulderRight shoulder
LeftHandLeft hand
RightHandRight hand
LeftFootLeft foot
RightFootRight foot
SpineSpine
PelvisPelvis
MouthMouth
ChinChin
LeftEarLeft ear
RightEarRight ear
LeftEyeballLeft eyeball
RightEyeballRight eyeball
NoseNose
RightUpperArmRight upper arm
RightForearmRight forearm
LeftUpperArmLeft upper arm
LeftForearmLeft forearm
RightHipRight hip
RightUpperLegRight upper leg
RightLowerLegRight lower leg
LeftHipLeft hip
LeftUpperLegLeft upper leg
LeftLowerLegLeft lower leg
StomachStomach
LeftPecLeft pectoral
RightPecRight pectoral
HUDCenter2HUD Center position 2
HUDTopRightHUD Top-right
HUDTopHUD Top
HUDTopLeftHUD Top-left
HUDCenterHUD Center
HUDBottomLeftHUD Bottom-left
HUDBottomHUD Bottom
HUDBottomRightHUD Bottom-right
NeckNeck
RootAvatar Center

Demonstration


secondlife/scripted_agents/corrade/api/progressive/commands/attach.txt · Last modified: 2017/02/22 18:27 (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.