Attachments
Attach objects to avatars and inspect attachment state.
Feature: Avatars
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
llAttachToAvatar(integer attach_point)functionAttaches the object to the avatar who has granted the
PERMISSION_ATTACHpermission. Takes the object into the user's inventory and attaches it at attach_point.llAttachToAvatarTemp(integer attach_point)functionAttaches the object temporarily to an avatar who has granted the
PERMISSION_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).llDetachFromAvatar()functionDetaches the object containing the script from the avatar. Requires the
PERMISSION_ATTACHruntime permission (automatically granted to attached objects). Note that the detached object is completely removed from the region and not dropped on the ground.integer llGetAttached()functionReturns the integer attachment point (an ATTACH_* constant) that the object is attached to, or 0 if it is unattached or pending detachment.
list llGetAttachedList(key avatar)functionReturns 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.
list llGetAttachedListFiltered(key avatar, list options)functionReturns 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.
attach(key avatar)eventTriggered whenever the object is attached to or detached from an avatar. Passes the UUID key of the avatar if attached, or
NULL_KEYif detached.
No matching entries. Try a different term or filter.