LlGetAttachedListFiltered: Difference between revisions
Rider Linden (talk | contribs) Created page with "{{LSL_Function |inject-2= {{LSL_Function/avatar|avatar|sim=*}} |func_id=? |func_sleep |func_energy |func=llGetAttachedList |func_desc |p1_type=key|p1_name=avatar|p1_desc |retu..." |
Rider Linden (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
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: | 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. | |||
|constants={{LSL_Constants_Attachment_Filter}} | |constants={{LSL_Constants_Attachment_Filter}} |
Revision as of 15:00, 6 November 2024
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:
- 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.
|
![]() |
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 |