LlGetAgentInfo/ja: Difference between revisions
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) New page: {{multi-lang}}{{LSL Function/avatar/ja|id|sim=*}}{{LSL_Function/ja |func=llGetAgentInfo |sort=GetAgentInfo |func_id=206|func_sleep=0.0|func_energy=10.0 |return_type=integer|p1_type=key|p1_... |
Asuka Neely (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
!class="unsortable"{{!}} エージェントが....時に返されます | !class="unsortable"{{!}} エージェントが....時に返されます | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_ALWAYS_RUN|integer|hex=0x1000|4096|c=走っている("Always Run")}} | {{!}}{{LSL Const/ja|AGENT_ALWAYS_RUN|integer|hex=0x1000|4096|c=走っている("Always Run")}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_ATTACHMENTS|integer|hex=0x0002|2|c=装着している}} | {{!}}{{LSL Const/ja|AGENT_ATTACHMENTS|integer|hex=0x0002|2|c=装着している}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_AWAY|integer|hex=0x0040|64|c="away"モード}} | {{!}}{{LSL Const/ja|AGENT_AWAY|integer|hex=0x0040|64|c="away"モード}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_BUSY|integer|hex=0x0800|2048|c="busy"モード}} | {{!}}{{LSL Const/ja|AGENT_BUSY|integer|hex=0x0800|2048|c="busy"モード}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_CROUCHING|integer|hex=0x0400|1024|c=しゃがんでいる}} | {{!}}{{LSL Const/ja|AGENT_CROUCHING|integer|hex=0x0400|1024|c=しゃがんでいる}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_FLYING|integer|hex=0x0001|1|c=飛んでいる}} | {{!}}{{LSL Const/ja|AGENT_FLYING|integer|hex=0x0001|1|c=飛んでいる}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_IN_AIR|integer|hex=0x0100|256|c=空中に浮かんでいる}} | {{!}}{{LSL Const/ja|AGENT_IN_AIR|integer|hex=0x0100|256|c=空中に浮かんでいる}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_MOUSELOOK|integer|hex=0x0008|8|c=マウスルック}} | {{!}}{{LSL Const/ja|AGENT_MOUSELOOK|integer|hex=0x0008|8|c=マウスルック}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_ON_OBJECT|integer|hex=0x0020|32|c=オブジェクトに座っている}} | {{!}}{{LSL Const/ja|AGENT_ON_OBJECT|integer|hex=0x0020|32|c=オブジェクトに座っている}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_SCRIPTED|integer|hex=0x0004|4|c=スクリプトを装着}} | {{!}}{{LSL Const/ja|AGENT_SCRIPTED|integer|hex=0x0004|4|c=スクリプトを装着}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_SITTING|integer|hex=0x0010|16|c=座っている}} | {{!}}{{LSL Const/ja|AGENT_SITTING|integer|hex=0x0010|16|c=座っている}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_TYPING|integer|hex=0x0200|512|c=入力している}} | {{!}}{{LSL Const/ja|AGENT_TYPING|integer|hex=0x0200|512|c=入力している}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSL Const|AGENT_WALKING|integer|hex=0x0080|128|c=歩いている}} | {{!}}{{LSL Const/ja|AGENT_WALKING|integer|hex=0x0080|128|c=歩いている}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}{{#var:comment}} | {{!}}{{#var:comment}} | ||
Revision as of 03:51, 19 January 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 | 歩いている |
サンプル
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の関連した項目が参考になるかもしれません。