6 October 2016

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

CommandRequired ParametersRequired Corrade PermissionsExample
attachgroup, password, attachmentsgrooming
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:

PointDescription
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

[video: secondlife_scripted_agents_corrade_api_progressive_attach_detach.mp4]

Notes