LlGetAgentInfo/ja

From Second Life Wiki

メインページ > LlGetAgentInfo > LlGetAgentInfo/ja
Jump to: navigation, search

関数: 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 歩いている

 
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 Wikiの関連した項目が参考になるかもしれません。
Personal tools
In other languages