Difference between revisions of "LlGetAttachedList"
Jump to navigation
Jump to search
m (oops) |
Rolig Loon (talk | contribs) |
||
Line 13: | Line 13: | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples | |examples=<source lang="lsl2"> | ||
// 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")); | |||
} | |||
} | |||
</source> | |||
|spec | |spec | ||
|constants | |constants |
Revision as of 14:43, 3 October 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: list llGetAttachedList( key avatar );
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 |