Difference between revisions of "LlGetAgentInfo/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=llGetAgentInfo
|func=llGetAgentInfo
|sort=GetAgentInfo
|sort=GetAgentInfo
Line 110: Line 110:
|permission
|permission
|negative_index
|negative_index
|cat1=Avatar/ja
|cat1=Avatar
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 23:16, 18 April 2008

要約

関数: integer llGetAgentInfo( key id );

idに関するエージェントの情報を含むビットフィールドを integer で返します。

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

定数 エージェントが....時に返されます
AGENT_ALWAYS_RUN 0x1000 走っている("Always Run")
AGENT_ATTACHMENTS 0x0002 装着している
AGENT_AWAY 0x0040 "away"モード
AGENT_BUSY 0x0800 "busy"モード
AGENT_CROUCHING 0x0400 しゃがんでいる
AGENT_FLYING 0x0001 飛んでいる
AGENT_IN_AIR 0x0100 空中に浮かんでいる
AGENT_MOUSELOOK 0x0008 マウスルック
AGENT_ON_OBJECT 0x0020 オブジェクトに座っている
AGENT_SCRIPTED 0x0004 スクリプトを装着
AGENT_SITTING 0x0010 座っている
AGENT_TYPING 0x0200 入力している
AGENT_WALKING 0x0080 歩いている

サンプル

<lsl> default {

   touch_start(integer buf)
   {
       buf = llGetAgentInfo(llDetectedKey(0));
       string out;
       if(buf & AGENT_FLYING)
           out += "The agent is flying.\n";
       else
           out += "The agent is not flying.\n";
       
       if(buf & AGENT_ATTACHMENTS)
       {
           if(buf & AGENT_SCRIPTED)
               out += "The agent has scripted attachments.\n";
           else
               out += "The agent's attachments are unscripted.\n";
       }
       else
           out += "The agent does not have attachments.\n";
       
       if(buf & AGENT_MOUSELOOK)
           out += "the agent is in mouselook.";
       else
           out += "the agent is in normal camera mode.";
       llWhisper(0, out);
   }

}

</lsl>

関連項目

特記事項

Search JIRA for related Issues

Signature

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