Difference between revisions of "LlGetAttachedList/ja"

From Second Life Wiki
Jump to navigation Jump to search
(copy from english(Todo: need translate to japanese))
 
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/ja
|inject-2=
|inject-2=
{{LSL_Function/avatar|avatar|sim=*}}
{{LSL_Function/avatar|avatar|sim=*}}

Revision as of 13:08, 2 November 2023

要約

関数: list llGetAttachedList( key avatar );

of object keys corresponding to public attachments worn by an avatar.を list で返します。

• 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.

サンプル

// 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"));
    }
}

関連項目

特記事項

経緯

|-style="vertical-align:top;" | style="color:gray;" |• 20/Dec/08 | SVC-3560 | style="color:gray;" | – | llQueryAvatarAttachments Suggested | |-style="vertical-align:top;" | style="color:gray;" |• 30/Apr/13 | BUG-2467 | style="color:gray;" | – | llGetAttachedList Suggested | |-style="vertical-align:top;" | style="color:gray;" |• 14/Jul/15 | BUG-9683 | style="color:gray;" | – | llGetAttachedList Suggested again |

Search JIRA for related Issues

Signature

function list llGetAttachedList( key avatar );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。