LlGetOwnerKey/ja

From Second Life Wiki
< LlGetOwnerKey
Revision as of 15:37, 25 February 2016 by SakuraNoel Fayray (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

要約

関数: key llGetOwnerKey( key id );

オブジェクト id のオーナーを key で返します。

• key id オブジェクトのUUID

id で指定されたオブジェクトが同じ SIM に無い場合は id を返します。

サンプル

key owner;

default
{
    state_entry()
    {
        owner = llGetOwner();
        llListen(1, "", "", "");
    }
    on_rez(integer a)
    {
        owner = llGetOwner();
    }
    listen(integer chan, string name, key id, string msg)
    {
        if(llGetOwnerKey(id) == owner)
        {//発言元が、オーナーか、オーナーが同じものであれば、以下は実行されます。
            llOwnerSay(name + " has the same owner as me ^_^");
        }
    }
}

注意点

引数にアバターの UUID が指定された場合、その UUID は戻り値にもなります。つまりアバターはそれ自身によって所有されています。

関連項目

関数

•  llKey2Name
•  llRequestAgentData
•  llGetOwner

特記事項

Search JIRA for related Issues

Signature

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