Difference between revisions of "AGENT AUTOPILOT"

From Second Life Wiki
Jump to navigation Jump to search
(add example)
m (<lsl> tag to <source>)
Line 12: Line 12:
|pb
|pb
|examples=
|examples=
<lsl>
<source lang="lsl2">
     if (llGetAgentInfo( llGetOwner() ) & AGENT_AUTOPILOT)     
     if (llGetAgentInfo( llGetOwner() ) & AGENT_AUTOPILOT)     
         llSay(0, "Oops, sorry, don't blame me, it was my auto-pilot!");
         llSay(0, "Oops, sorry, don't blame me, it was my auto-pilot!");
</lsl>
</source>
|constants=
|constants=
{{LSL ConstRow|AGENT_FLYING}}
{{LSL ConstRow|AGENT_FLYING}}

Revision as of 16:05, 22 January 2015

Description

Constant: integer AGENT_AUTOPILOT = 0x2000;

The integer constant AGENT_AUTOPILOT has the value 0x2000

This value is set when the user selects "Go Here" on the ground, or uses the optional Double-Click Auto-Pilot feature.

Under Viewer 2.0 and later, it is also set when:

  • the user selects "Sit Here" on the ground.
  • an object is selected or edited, and that selection can trigger a control (CONTROL_ROT_RIGHT and CONTROL_ROT_LEFT can be activated when selecting an object near the far right or left edge of the screen).

Caveats


Related Articles

Constants

•  AGENT_FLYING
•  AGENT_IN_AIR
•  AGENT_WALKING
•  AGENT_ALWAYS_RUN

Functions

•  llGetAgentInfo

Examples

    if (llGetAgentInfo( llGetOwner() ) & AGENT_AUTOPILOT)    
        llSay(0, "Oops, sorry, don't blame me, it was my auto-pilot!");

Deep Notes

History

Search JIRA for related Issues

Signature

integer AGENT_AUTOPILOT = 0x2000;