Arma 3 Scripting

Command in Unit Control, Roads and Airports

landAt

Also available as Markdown and JSON, or read the original wiki page.

Description

Order an AI airplane to land at a given airport. ID is the number to identify which map airport you want the airplane to land at. See Arma: Airport IDs for more information. See also land.

Note

Arma 3: - Arma 3 v1.68 it is possible to also make the airplane land at a dynamic airport object (e.g. aircraft carrier, makeshift runway...) – see #Example 2

  • Arma 3 v2.18 it is also possible to make a helicopter land at a specific helipad.

Note

Since Arma 3 v2.20 landAt command has been extended. Helicopter can now be landed not only on a helipad but also at arbitrary position, provided that it is empty and can accomodate the helicopter. In "Land" landing mode the helicopter lands permanently, while in "GetIn" and "GetOut" landing mode the helicopter performs a short touch down before going to the next waypoint. In order to make helicopter wait, the 'waitTime' param can be used. Landing mode "None" cancels both, the landing in progress and waiting in progress. Waiting time is available with landAt getter variant. When helicopter is landing, the time shown is the set time for wating, however when helicopter is landed, this time start counting down to 0, after which helicopter will take off if it has a waypoint to go to. The AI pilot state can be monitored with getUnitState command. The helicopter has to be local to the machine executing the command. VTOL waiting time is not supported

Syntax

Syntax 1

plane landAt ID

Parameters:

Returns: Nothing

Syntax 2

since arma3 1.68

plane landAt airportObject

Parameters:

Returns: Nothing

Syntax 3

since arma3 2.18

heli landAt [position, mode, waitTime, putOnSurface]

Parameters:

Returns: Boolean - Returns true if landing command was processed successfully, false if failed.

Syntax 4

since arma3 2.20

landAt heli

Parameters:

Returns: Array with [landMode, landResult, landPosition, waitTime, autopilotState]

Examples

Example 1

_plane1 landAt 1;

Example 2

_dynamicAirport1 = "DynamicAirport_01_F" createVehicle position player;
_plane1 landAt _dynamicAirport1;

Example 3

_hpad = "Land_HelipadEmpty_F" createVehicle [0,0,0];
_hpad setPosASL _pos;
heli landAt [_hpad, "LAND"];

Example 4

heli landAt [getPosWorld player vectorAdd [10,10,0], "GetIn", 30];

See also

Arma: Airport IDs · land · setAirportSide · assignToAirport · allAirports