LlDetectedGroup/ja
From Second Life Wiki
メインページ > LlDetectedGroup > LlDetectedGroup/ja
Template:LSL Function/group/ja
警告
- number が正常なインデックス範囲を外れていても、スクリプトはエラー表示を出さずに処理を続けます。
- llDetected* 関数が有効になるイベントは、常に少なくとも 1 個以上の探知結果を返します。
- 何も探知されなかった場合、探知イベントは発生しません。(no_sensor イベントはある意味例外ですが、llDetected* 関数はそこでは無効です。)
- イベントの探知個数を表す引数は、決して 1 未満にはなりません。
例
//Gives inventory only to agents with the same active group default { touch_start(integer total_number) { integer number = 0; do { if (llDetectedGroup(number)) //same as llSameGroup(llDetectedKey(0)) (with llSameGroup, detected must be in the sim) llGiveInventory(llDetectedKey(number), llGetInventoryName(INVENTORY_OBJECT,0)); else llSay(0, "Wrong active group!"); }while(total_number > ++number); } }
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。

