# AGENT_AUTOPILOT

*LSL constant*

```lsl
integer AGENT_AUTOPILOT = 0x2000;
```

Constant groups: [AgentInfo](/constants/groups/AgentInfo/)

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](/events/control/) ([CONTROL_ROT_RIGHT](/constants/CONTROL_ROT_RIGHT/) and [CONTROL_ROT_LEFT](/constants/CONTROL_ROT_LEFT/) can be activated when selecting an object near the far right or left edge of the screen).

## Examples

<details open>
<summary>Example 1</summary>

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

</details>

## History

- [VWR-13202](https://jira.secondlife.com/browse/VWR-13202) - Bug report where `AGENT_AUTOPILOT` was proposed and implementation was discussed.
- [AGENT_AUTOPILOT](/constants/AGENT_AUTOPILOT/) was added in SVN:2900 r136439 Trunk
- Server support added in Second Life Server 1.32.0.136920

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [AGENT_FLYING](/constants/AGENT_FLYING/) |  |  |  |
| [AGENT_IN_AIR](/constants/AGENT_IN_AIR/) |  |  |  |
| [AGENT_WALKING](/constants/AGENT_WALKING/) |  |  |  |
| [AGENT_ALWAYS_RUN](/constants/AGENT_ALWAYS_RUN/) |  |  |  |

### Functions

- [llGetAgentInfo](/functions/llGetAgentInfo/)

---

*Source: [AGENT AUTOPILOT](https://wiki.secondlife.com/wiki/AGENT_AUTOPILOT) on the Second Life Wiki. Content from the Second Life Wiki article AGENT AUTOPILOT (revision 1215021, 2023-10-12), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/AGENT_AUTOPILOT/
