Attach an In-World Primitive

6 March 2019

  • C10 - Added.
attachobject (Commands)
TypeCorrade progressive command
Commandattachobject
DescriptionThe attachobject command allows Corrade to attach an in-world primitive.
Permissionsinventory
Parametersgroup, password, item
Last ChangesC10 - Added.

The attachobject command allows Corrade to attach an in-world primitive.

Command Required Parameters Required Corrade Permissions Example
attachobject group, password, item inventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "attachobject",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "callback", wasURLEscape(URL),
            // Or by name. . .
            "item", "d065ba4f-64ca-0e1b-cf9a-316e2bbc77fe",
            "slot", "Skull"
        ]
    )
);

The command returns the inventory UUID of the attached object on successful termination. 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
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
rotation A quaternion The rotation to apply to the attached primitive once it has been attached.

Notes


secondlife/scripted_agents/corrade/api/commands/attachobject.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


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