llGetAttachedList
function
Function syntax
list llGetAttachedList(key avatar// UUID of the avatar in the same region.
);- Returns
list- Energy
- 10
By design HUD attachment keys are not reported by this function.
If avatar is a child agent, [“NOT ON REGION”] is returned.
If avatar is not a main agent and not a child agent or not an agent at all, [“NOT FOUND”] is returned.
Returns a list of object keys corresponding to public attachments worn by an avatar in the order they were attached.
list result = llGetAttachedList(NULL_KEY);Caveats
Section titled “Caveats”When an avatar first arrives in a region, there is a brief period when their attachments are not yet fully rezzed or added. During this time, those attachments will not appear in the results.
Examples
Section titled “Examples”Example 1
5 collapsed lines
// Touch to list all attachments
default{ touch_start(integer total_number) { list AttachedNames; list AttachedUUIDs = llGetAttachedList(llDetectedKey(0)); integer i; while (i < llGetListLength(AttachedUUIDs) )8 collapsed lines
{ list temp = llGetObjectDetails(llList2Key(AttachedUUIDs,i),[OBJECT_NAME]); AttachedNames += [llList2String(temp,0)]; ++i; } llSay(PUBLIC_CHANNEL,"\n" + llDumpList2String(AttachedNames,"\n")); }}History
Section titled “History”- 20/Dec/08 — SVC-3560 — llQueryAvatarAttachments Suggested
- 30/Apr/13 — BUG-2467 —
llGetAttachedListSuggested - 14/Jul/15 — BUG-9683 —
llGetAttachedListSuggested again
See also
Section titled “See also”Functions
Section titled “Functions”llGetAttachedllGetAttachedListFilteredllAttachToAvatarllDetachFromAvatarllAttachToAvatarllGetObjectDetails—OBJECT_ATTACHED_POINT
Events
Section titled “Events”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.