Difference between revisions of "AGENT AUTOPILOT"

From Second Life Wiki
Jump to navigation Jump to search
(note what the flag tells us now, and what is still missing)
m (Replaced <source> with <syntaxhighlight>)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL Generic/pre-release|constant|client-release=''(unknown, possibly 2.0)''}}{{LSL Constant
{{LSL Constant
|name=AGENT_AUTOPILOT
|name=AGENT_AUTOPILOT
|type=integer
|type=integer
|value={{LSL Hex|0x2000}}
|value={{LSL Hex|0x2000}}
|desc=This value is currently set when the user selects "Go Here" on the ground, or uses the optional Double-Click Auto-Pilot feature. It is ''not'' currently set if the user selects "Sit Here" on the ground or objects.
|desc=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).


While this flag is available and active on production servers, its functionality is incomplete. The remainder will rely on future viewers, which may also cause AGENT_AUTOPILOT to be active when an object is selected.
|pa
|pa
|pb
|pb
|examples
|examples=
<syntaxhighlight lang="lsl2">
    if (llGetAgentInfo( llGetOwner() ) & AGENT_AUTOPILOT)   
        llSay(0, "Oops, sorry, don't blame me, it was my auto-pilot!");
</syntaxhighlight>
|constants=
|constants=
{{LSL ConstRow|AGENT_FLYING}}
{{LSL ConstRow|AGENT_FLYING}}
Line 21: Line 28:
*{{Jira|VWR-13202}} - Bug report where AGENT_AUTOPILOT was proposed and implementation was discussed.
*{{Jira|VWR-13202}} - Bug report where AGENT_AUTOPILOT was proposed and implementation was discussed.
*[[AGENT_AUTOPILOT]] was added in {{SVN|2900|rev=136439|trunk=*|ser=1.33.0|anchor=file21}}
*[[AGENT_AUTOPILOT]] was added in {{SVN|2900|rev=136439|trunk=*|ser=1.33.0|anchor=file21}}
* Server support added in Second Life Server 1.32.0.136920
|notes
|notes
|cat1
|cat1

Latest revision as of 09:53, 12 October 2023

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).

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;