GetAttachedListFiltered
llGetAttachedList
Summary
Function: list llGetAttachedList( key avatar );
Returns a list of object keys corresponding to public attachments worn by an avatar in the order they were attached.
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.
Specification
Returns a list of attachments on the avatar.
By default this function will return all attachments on all attachment points. A script may specify multiple FILTER_INCLUDE options which will limit the returned attachments to only those listed.
If the script specifies the FILTER_FLAGS option with FILTER_FLAG_HUDS this function will include any attached HUDs if the following conditions are met:
- The script must be compiled with an experience
- The experience must be active in the region
- The avatar must have accepted the experience
- The HUD must include at least one script that was also compiled with the same experience.
Parameter
|
Format
|
Description
|
[ FILTER_INCLUDE ]
|
1
|
[ FILTER_INCLUDE, integer attachment_point ]
|
Include attachments on the specified attachment point in the returned results.
This parameter may occur multiple times. If it is omitted the function returns attachments on all attachment points.
|
[ FILTER_FLAGS ]
|
2
|
[ FILTER_FLAGS, integer flags ]
|
Flags to control filter behavior.
Parameter
|
Description
|
[ FILTER_FLAG_HUDS ]
|
0x0001
|
Include HUDs in the returned result.
|
|
 |
Note: Constants in italic require a viewer compatible with the Project Bento skeleton. |
|
|
Special
Constant |
Comment
|
ATTACH_ANY_HUD
|
-1
|
A special constant representing all HUD attachment points when filtering.
|
|
Caveats
- This function causes the script to sleep for 3.0 seconds.
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.
Deep Notes
History
• 20/Dec/08
|
SVC-3560
|
–
|
llQueryAvatarAttachments Suggested
|
|
• 30/Apr/13
|
BUG-2467
|
–
|
llGetAttachedList Suggested
|
|
• 14/Jul/15
|
BUG-9683
|
–
|
llGetAttachedList Suggested again
|
|
Signature
|
function list llGetAttachedList( key avatar );
|