llGetAttachedListFiltered
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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.
• key | avatar | – | avatar UUID that is in the same region |
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: 1. The script must be compiled with an experience 2. The experience must be active in the region 3. The avatar must have accepted the experience 4. 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.
|
Note: Constants in italic require a viewer compatible with the Project Bento skeleton. |
|
|
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
See Also
Events
• | attach |
Functions
• | llGetAttached | |||
• | llGetAttachedList | |||
• | llAttachToAvatar | |||
• | llDetachFromAvatar | |||
• | llAttachToAvatar | |||
• | llGetObjectDetails | – | OBJECT_ATTACHED_POINT |