Difference between revisions of "LlGetAgentSize/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) m |
Void Singer (talk | contribs) m (formatted example) |
||
Line 9: | Line 9: | ||
|constants | |constants | ||
|examples= | |examples= | ||
< | <lsl> | ||
//A simple script that makes a box hover above the owner's head. | //A simple script that makes a box hover above the owner's head. | ||
default { | default { | ||
Line 25: | Line 25: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions= | |also_functions= |
Revision as of 15:52, 18 February 2008
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: vector llGetAgentSize( key id );サンプル
<lsl> //A simple script that makes a box hover above the owner's head. default {
state_entry(integer i) { key owner = llGetOwner(); vector pos = llList2Vector(llGetObjectDetails(owner, [OBJECT_POS]),0); vector agent = llGetAgentSize(owner); pos.z += 0.5 + agent.z / 2;//"pos" needs to be adjusted so it appears above the owner. if(agent)//makes sure it found the owner, a zero vector evaluates as false llSetPos(pos); } touch_start(integer num) { llResetScript(); }
}
</lsl>注意点
これはアバターが同じリージョンにいるかどうかのテストとして優れた方法です。
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。