Skip to content

Attachments

Attach objects to avatars and inspect attachment state.

What do you want to do?

Reference

7 topic entries

Badges
Kind
  • 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.functionP (Requires PERMISSION_ATTACH)
  • llAttachToAvatarTemp(integer attach_point)Attaches the object temporarily to an avatar who has granted the PERMISSION_ATTACH permission. 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 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.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.function
  • list 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.function
  • list 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.function
  • attach(key avatar)Triggered whenever the object is attached to or detached from an avatar. Passes the UUID key of the avatar if attached, or NULL_KEY if detached.event