Difference between revisions of "LlSameGroup/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{multi-lang}}{{LSL Function/ja
{{LSL Function/ja
|func=llSameGroup
|func=llSameGroup
|sort=SameGroup
|sort=SameGroup
Line 30: Line 30:
|also_articles
|also_articles
|notes
|notes
|cat1=Avatar/ja
|cat1=Avatar
|cat2=Group/ja
|cat2=Group
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 23:55, 18 April 2008

要約

関数: integer llSameGroup( key agent );

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

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

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

サンプル

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

関連項目

関数

•  llDetectedGroup detectionイベントで接続に用いられます

特記事項

Search JIRA for related Issues

Signature

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