6 March 2019
attachobject (Commands) | |
---|---|
Type | Corrade progressive command |
Command | attachobject |
Description | The attachobject command allows Corrade to attach an in-world primitive. |
Permissions | inventory |
Parameters | group , password , item |
Last Changes | C10 - 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 |
---|---|
Default | Right hand if object was not previously attached |
Chest | Chest |
Skull | Skull |
LeftShoulder | Left shoulder |
RightShoulder | Right shoulder |
LeftHand | Left hand |
RightHand | Right hand |
LeftFoot | Left foot |
RightFoot | Right foot |
Spine | Spine |
Pelvis | Pelvis |
Mouth | Mouth |
Chin | Chin |
LeftEar | Left ear |
RightEar | Right ear |
LeftEyeball | Left eyeball |
RightEyeball | Right eyeball |
Nose | Nose |
RightUpperArm | Right upper arm |
RightForearm | Right forearm |
LeftUpperArm | Left upper arm |
LeftForearm | Left forearm |
RightHip | Right hip |
RightUpperLeg | Right upper leg |
RightLowerLeg | Right lower leg |
LeftHip | Left hip |
LeftUpperLeg | Left upper leg |
LeftLowerLeg | Left lower leg |
Stomach | Stomach |
LeftPec | Left pectoral |
RightPec | Right pectoral |
HUDCenter2 | HUD Center position 2 |
HUDTopRight | HUD Top-right |
HUDTop | HUD Top |
HUDTopLeft | HUD Top-left |
HUDCenter | HUD Center |
HUDBottomLeft | HUD Bottom-left |
HUDBottom | HUD Bottom |
HUDBottomRight | HUD Bottom-right |
Neck | Neck |
Root | Avatar 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. |