Difference between revisions of "LlGetAttachedList"
Jump to navigation
Jump to search
Rolig Loon (talk | contribs) |
m (Documented this function's return of ["NOT ON REGION"] & ["NOT FOUND"].) |
||
Line 9: | Line 9: | ||
|p1_type=key|p1_name=avatar|p1_desc | |p1_type=key|p1_name=avatar|p1_desc | ||
|return_type=list|return_text=of public attachments worn by an {{LSLPT|avatar}}. | |return_type=list|return_text=of public attachments worn by an {{LSLPT|avatar}}. | ||
|func_footnote=By design HUD attachment keys are not reported by this function. | |func_footnote=By design HUD attachment keys are not reported by this function.<br/> <br/> | ||
If avatar is a child agent, ["NOT ON REGION"] is returned.<br/> | |||
If avatar is not a main agent and not a child agent or not an agent at all, ["NOT FOUND"] is returned. | |||
|constants={{LSL_Constants_Attachment|NoHud=*}} | |constants={{LSL_Constants_Attachment|NoHud=*}} | ||
|spec | |spec |
Revision as of 21:58, 29 July 2016
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: list llGetAttachedList( key avatar );Returns a list of public attachments worn by an avatar.
• key | avatar | – | avatar UUID that is in the same region |
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.
Note: Constants in italic require a viewer compatible with the Project Bento skeleton. |
|
Examples
// Touch to list all attachments
default
{
touch_start(integer total_number)
{
list AttachedNames;
list AttachedUUIDs = llGetAttachedList(llDetectedKey(0));
integer i;
while (i < llGetListLength(AttachedUUIDs) )
{
list temp = llGetObjectDetails(llList2Key(AttachedUUIDs,i),[OBJECT_NAME]);
AttachedNames += [llList2String(temp,0)];
++i;
}
llSay(PUBLIC_CHANNEL,"\n" + llDumpList2String(AttachedNames,"\n"));
}
}
See Also
Events
• | attach |
Functions
• | llGetAttached | |||
• | llAttachToAvatar | |||
• | llDetachFromAvatar | |||
• | llAttachToAvatar | |||
• | llGetObjectDetails | – | OBJECT_ATTACHED_POINT |