Difference between revisions of "LlGetAgentSize/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (formatted example)
m
Line 1: Line 1:
{{multi-lang}}{{LSL Function/avatar/ja|id|sim=*}}{{LSL_Function/ja
{{LSL Function/avatar/ja|id|sim=*}}{{LSL_Function/ja
|func_id=218|func_sleep=0.0|func_energy=10.0
|func_id=218|func_sleep=0.0|func_energy=10.0
|func=llGetAgentSize|return_type=vector|p1_type=key|p1_name=id
|func=llGetAgentSize|return_type=vector|p1_type=key|p1_name=id
Line 39: Line 39:
|negative_index
|negative_index
|cat1
|cat1
|cat2=Avatar/ja
|cat2=Avatar
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 23:16, 18 April 2008

要約

関数: vector llGetAgentSize( key id );

要求されたidのアバタの大きさを vector で返します。

• key id 同一 地域 にいるアバターの UUID

エージェントidは要求するオブジェクトと同じリージョンでなければならず、居ない場合はZERO_VECTORが返されます。

サンプル

<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>

注意点

これはアバターが同じリージョンにいるかどうかのテストとして優れた方法です。

関連項目

特記事項

Search JIRA for related Issues

Signature

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