LlGetAgentInfo/ja: Difference between revisions
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) mNo edit summary |
Void Singer (talk | contribs) m formatted example |
||
| Line 69: | Line 69: | ||
{{!}}} | {{!}}} | ||
|examples= | |examples= | ||
< | <lsl> | ||
default | default | ||
{ | { | ||
| Line 98: | Line 98: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions= | |also_functions= | ||
Revision as of 15:44, 18 February 2008
| LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: integer llGetAgentInfo( key id );
| 定数 | 値 | エージェントが....時に返されます |
|---|---|---|
| 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>関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。