Difference between revisions of "LlGetAgentInfo"
Jump to navigation
Jump to search
(not doing every flag, it's overkill.) |
(not doing every flag, it's overkill.) |
||
Line 103: | Line 103: | ||
else | else | ||
out += "the agent is in normal camera mode."; | out += "the agent is in normal camera mode."; | ||
llWhisper(0, out); | |||
} | } | ||
} | } |
Revision as of 02:52, 9 May 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetAgentInfo( key id );206 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer bitfield containing the agent information about id.
• key | id | – | agent UUID in region |
|
|
Caveats
Examples
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); } }
See Also
Functions
• | llRequestAgentData |