“LlGetAgentInfo”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名=Function: integer llGetAgentInfo( key id ); |参数=参数:关键 id-…”) |
|||
| 第8行: | 第8行: | ||
|注意事项= | |注意事项= | ||
| + | |||
*代理繁忙表明“繁忙”内部动画正在播放,即使用户没有真正处于繁忙模式。 | *代理繁忙表明“繁忙”内部动画正在播放,即使用户没有真正处于繁忙模式。 | ||
*在服务器1.40及以下,代理键入表明“类型”内部动画正在播放,如果用户禁用 playtypinganim 将不设置。 在服务器1.42及以上版本中,它反映来自客户端的键入启动 / 停止消息,而不依赖于动画。 如果需要旧的行为,使用 llgetanimationlist 并查找“ c541c47f-e0c0-058b-ad1a-d6a3a4584d9”ー svc-787 | *在服务器1.40及以下,代理键入表明“类型”内部动画正在播放,如果用户禁用 playtypinganim 将不设置。 在服务器1.42及以上版本中,它反映来自客户端的键入启动 / 停止消息,而不依赖于动画。 如果需要旧的行为,使用 llgetanimationlist 并查找“ c541c47f-e0c0-058b-ad1a-d6a3a4584d9”ー svc-787 | ||
*agent always run | agent walking 表示用户请求使用标准查看器控件运行。 使用 llgetanimation 也可以检测由物理导致的运行。 | *agent always run | agent walking 表示用户请求使用标准查看器控件运行。 使用 llgetanimation 也可以检测由物理导致的运行。 | ||
| − | * | + | *这个函数在过境后不会立即返回可靠的信息。如果可以的话,使用 llgetanimation。-svc-3177 |
|示例= | |示例= | ||
2020年6月1日 (一) 05:51的版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: integer llGetAgentInfo( key id ); |
| 参数:关键 id-化身 uuid 是在同一地区 |
| 返回值:返回一个位字段(一个整数) ,其中包含有关 id 的代理信息。 |
| 注意事项 |
|---|
*代理繁忙表明“繁忙”内部动画正在播放,即使用户没有真正处于繁忙模式。
|
| 示例 |
|---|
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 |
| 相关事件 |
|---|
| 无 |