LlGetAgentInfo

来自人工智能助力教育知识百科
跳转至: 导航搜索

Template:Needs Translation/

函数名
Function: integer llGetAgentInfo( key id );
参数:关键 id-化身 uuid 是在同一地区
返回值:返回一个位字段(一个整数) ,其中包含有关 id 的代理信息。
注意事项
注意事项:
  • 代理繁忙表明“繁忙”内部动画正在播放,即使用户没有真正处于繁忙模式。
  • 在服务器1.40及以下,代理键入表明“类型”内部动画正在播放,如果用户禁用 playtypinganim 将不设置。 在服务器1.42及以上版本中,它反映来自客户端的键入启动 / 停止消息,而不依赖于动画。 如果需要旧的行为,使用 llgetanimationlist 并查找“ c541c47f-e0c0-058b-ad1a-d6a3a4584d9”ー svc-787
  • agent always run
示例
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);
    }
}
相关函数
llRequestAgentData llGetAnimation llGetAnimationList
相关事件