Attachments
Attach objects to avatars and inspect attachment state.
What do you want to do?
llAttachToAvatar(integer attach_point)Attaches the object to the avatar who has granted the PERMISSION_ATTACH permission. Takes the object into the user's inventory and attaches it at attach_point.integer llGetAttached()Returns the integer attachment point (an ATTACH_* constant) that the object is attached to, or 0 if it is unattached or pending detachment.llDetachFromAvatar()Detaches the object containing the script from the avatar. Requires the PERMISSION_ATTACH runtime permission (automatically granted to attached objects). Note that the detached object is completely removed from the region and not dropped on the ground.Reference
7 topic entries
Badges
Kind
llAttachToAvatar(integer attach_point)Attaches the object to the avatar who has granted thePERMISSION_ATTACHpermission. Takes the object into the user's inventory and attaches it at attach_point.functionP (Requires PERMISSION_ATTACH)llAttachToAvatarTemp(integer attach_point)Attaches the object temporarily to an avatar who has granted thePERMISSION_ATTACHpermission. No permanent inventory is created, and the object disappears on detach or disconnect. Can be used on non-owners (changing ownership to the wearer).functionP (Requires PERMISSION_ATTACH)llDetachFromAvatar()Detaches the object containing the script from the avatar. Requires thePERMISSION_ATTACHruntime permission (automatically granted to attached objects). Note that the detached object is completely removed from the region and not dropped on the ground.functionP (Requires PERMISSION_ATTACH)integer llGetAttached()Returns the integer attachment point (an ATTACH_* constant) that the object is attached to, or 0 if it is unattached or pending detachment.functionlist llGetAttachedList(key avatar)Returns a list of object keys (UUIDs) worn by the specified avatar, in the order they were attached. HUDs are not included because they are neither public nor visible. Returns a list containing an error message string on failure.functionlist llGetAttachedListFiltered(key avatar, list options)Returns a list of object keys (UUIDs) worn by the specified avatar, in the order they were attached, filtered by options. Returns a list containing an error message string on failure.functionattach(key avatar)Triggered whenever the object is attached to or detached from an avatar. Passes the UUID key of the avatar if attached, orNULL_KEYif detached.event
No matching entries. Try a different term or filter.