list llGetAttachedListFiltered( key avatar, list options );
Forced delay: 0.0 seconds. Energy: 10.0.
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.
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:
| 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.
| ||||||||||||||||||||||
Constants in italic require a viewer compatible with the Project Bento skeleton.
Body
|
HUD
Special
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
default
{
state_entry()
{
list attachments = llGetAttachedListFiltered(llGetOwner(), [FILTER_INCLUDE, ATTACH_RHAND]);
// Object UUIDs:
llOwnerSay(llList2CSV(attachments));
// Object names:
integer i;
integer max = llGetListLength(attachments);
for (i = 0; i < max; ++i)
{
string name = llList2String(attachments, i);
llOwnerSay(llKey2Name(name));
}
}
}