Difference between revisions of "LlGetAgentInfo"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
|func=llGetAgentInfo|return_type=integer|p1_type=key|p1_name=id | |func=llGetAgentInfo|return_type=integer|p1_type=key|p1_name=id | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=bitfield containing the agent information about '''id'''. | |return_text=bitfield containing the agent information about '''id'''. | ||
|spec | |spec | ||
Line 14: | Line 14: | ||
{{!}}{{LSLG|AGENT_ALWAYS_RUN}} | {{!}}{{LSLG|AGENT_ALWAYS_RUN}} | ||
{{!}}Returned if agent has running ("Always Run") enabled. | {{!}}Returned if agent has running ("Always Run") enabled. | ||
{{!}}{{Hex|0x1000|4096}} | {{!}}{{LSL Hex|0x1000|4096}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_ATTACHMENTS}} | {{!}}{{LSLG|AGENT_ATTACHMENTS}} | ||
{{!}}Returned if agent has attachments. | {{!}}Returned if agent has attachments. | ||
{{!}}{{Hex|0x0002|2}} | {{!}}{{LSL Hex|0x0002|2}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_AWAY}} | {{!}}{{LSLG|AGENT_AWAY}} | ||
{{!}}Returned if agent is in "away" mode. | {{!}}Returned if agent is in "away" mode. | ||
{{!}}{{Hex|0x0040|64}} | {{!}}{{LSL Hex|0x0040|64}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_BUSY}} | {{!}}{{LSLG|AGENT_BUSY}} | ||
{{!}}Returned if agent is in "busy" mode. | {{!}}Returned if agent is in "busy" mode. | ||
{{!}}{{Hex|0x0800|2048}} | {{!}}{{LSL Hex|0x0800|2048}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_CROUCHING}} | {{!}}{{LSLG|AGENT_CROUCHING}} | ||
{{!}}Returned if agent is crouching. | {{!}}Returned if agent is crouching. | ||
{{!}}{{Hex|0x0400|1024}} | {{!}}{{LSL Hex|0x0400|1024}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_FLYING}} | {{!}}{{LSLG|AGENT_FLYING}} | ||
{{!}}Returned if agent is flying. | {{!}}Returned if agent is flying. | ||
{{!}}{{Hex|0x0001|1}} | {{!}}{{LSL Hex|0x0001|1}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_IN_AIR}} | {{!}}{{LSLG|AGENT_IN_AIR}} | ||
{{!}}Returned if agent is in the air (hovering). | {{!}}Returned if agent is in the air (hovering). | ||
{{!}}{{Hex|0x0100|256}} | {{!}}{{LSL Hex|0x0100|256}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_MOUSELOOK}} | {{!}}{{LSLG|AGENT_MOUSELOOK}} | ||
{{!}}Returned if agent is in mouselook. | {{!}}Returned if agent is in mouselook. | ||
{{!}}{{Hex|0x0008|8}} | {{!}}{{LSL Hex|0x0008|8}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_ON_OBJECT}} | {{!}}{{LSLG|AGENT_ON_OBJECT}} | ||
{{!}}Returned if agent is sitting on an object. | {{!}}Returned if agent is sitting on an object. | ||
{{!}}{{Hex|0x0020|32}} | {{!}}{{LSL Hex|0x0020|32}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_SCRIPTED}} | {{!}}{{LSLG|AGENT_SCRIPTED}} | ||
{{!}}Returned if agent has scripted attachments. | {{!}}Returned if agent has scripted attachments. | ||
{{!}}{{Hex|0x0004|4}} | {{!}}{{LSL Hex|0x0004|4}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_SITTING}} | {{!}}{{LSLG|AGENT_SITTING}} | ||
{{!}}Returned if agent is sitting. | {{!}}Returned if agent is sitting. | ||
{{!}}{{Hex|0x0010|16}} | {{!}}{{LSL Hex|0x0010|16}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_TYPING}} | {{!}}{{LSLG|AGENT_TYPING}} | ||
{{!}}Returned if agent is typing. | {{!}}Returned if agent is typing. | ||
{{!}}{{Hex|0x0200|512}} | {{!}}{{LSL Hex|0x0200|512}} | ||
{{!}}- | {{!}}- | ||
{{!}}{{LSLG|AGENT_WALKING}} | {{!}}{{LSLG|AGENT_WALKING}} | ||
{{!}}Returned if agent is walking. | {{!}}Returned if agent is walking. | ||
{{!}}{{Hex|0x0080|128}} | {{!}}{{LSL Hex|0x0080|128}} | ||
{{!}}} | {{!}}} | ||
|examples | |examples |
Revision as of 13:19, 9 February 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 |
Constant | Represents | Value |
---|---|---|
AGENT_ALWAYS_RUN | Returned if agent has running ("Always Run") enabled. | 0x1000 |
AGENT_ATTACHMENTS | Returned if agent has attachments. | 0x0002 |
AGENT_AWAY | Returned if agent is in "away" mode. | 0x0040 |
AGENT_BUSY | Returned if agent is in "busy" mode. | 0x0800 |
AGENT_CROUCHING | Returned if agent is crouching. | 0x0400 |
AGENT_FLYING | Returned if agent is flying. | 0x0001 |
AGENT_IN_AIR | Returned if agent is in the air (hovering). | 0x0100 |
AGENT_MOUSELOOK | Returned if agent is in mouselook. | 0x0008 |
AGENT_ON_OBJECT | Returned if agent is sitting on an object. | 0x0020 |
AGENT_SCRIPTED | Returned if agent has scripted attachments. | 0x0004 |
AGENT_SITTING | Returned if agent is sitting. | 0x0010 |
AGENT_TYPING | Returned if agent is typing. | 0x0200 |
AGENT_WALKING | Returned if agent is walking. | 0x0080 |