Template:Needs Translation/
函数名
|
Function: list llGetAttachedList( key avatar )
|
参数:key avatar–同一区域化身的UUID
|
返回值:返回一个对象键列表,该对象键对应于角色所佩戴的公共附件。
|
示例
|
// 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"));
}
}
|