LlSameGroup/ja

From Second Life Wiki

メインページ > LlSameGroup > LlSameGroup/ja
Jump to: navigation, search

関数: integer llSameGroup( key agent );

agentのアクティブグループと同じ場合は1、その他の場合は0のinteger値を返します。

• key agent 同じSimでなければなりません

もしくは、オブジェクトがagentのアクティブグループに譲渡されている場合もtrueを返します。

//Gives inventory object only to agents with the same active group
default
{
    touch_start(integer total_number)
    {
        if(llSameGroup(llDetectedKey(0)))//same as llDetectedGroup(0) (with llDetectedGroup, detected does not need to be in the sim)
            llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_OBJECT,0));
        else
            llSay(0, "Wrong active group!");
    }
}

関連項目

関数

•  llDetectedGroup detectionイベントで接続に用いられます
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。
In other languages