landAt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(formatting, fixed redirects, merged note into description)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|1.08
 
|version1= 1.08
 
|game2= arma2
 
|version2= 1.00
 
|game3= arma2oa
 
|version3= 1.51
 
|game4= tkoh
 
|version4= 1.00
 
|game5= arma3
 
|version5= 0.50
 
|arg= local
|arg= local
|eff= global
|eff= global


|gr1= Unit Control
|gr1= Unit Control
|gr2= Roads and Airports
|gr2= Roads and Airports


| Order an AI airplane to land at a given airport.
|descr= 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.
'''Id''' is the number to identify which map airport you want the airplane to land at. See [[Arma: Airport IDs]] for more information.
{{Feature|arma3 | Since Arma 3 v1.68 it is possible to also make the airplane land at a [[Arma 3: Dynamic Airport Configuration|dynamic airport]] [[object]] (e.g. aircraft carrier, makeshift runway...) – see '''Example 2'''.}}
{{Feature|arma3 | Since Arma 3 v1.68 it is possible to also make the airplane land at a [[Dynamic_Airport_Configuration|dynamic airport]] [[object]] (e.g. aircraft carrier, makeshift runway...) – see '''Example 2'''.}}
{{Feature|important|To make a '''helicopter''' land see [[land]] command.}}


| plane [[landAt]] id
|s1= plane [[landAt]] ID


|p1= plane: [[Object]]
|p1= plane: [[Object]] - A plane


|p2= id: [[Number]] ([[Arma: Airport IDs|airport index]])
|p2= ID: [[Number]] - [[Arma: Airport IDs|Airport ID]]


| [[Nothing]]
|r1= [[Nothing]]


|s2= plane [[landAt]] airportObject {{Since|arma3|1.68|y}}
|s2= plane [[landAt]] airportObject {{Since|arma3|1.68|y}}
Line 34: Line 54:
_plane1 [[landAt]] _dynamicAirport1;</code>
_plane1 [[landAt]] _dynamicAirport1;</code>


|seealso= [[Arma: Airport IDs]], [[land]], [[setAirportSide]], [[assignToAirport]], [[allAirports]]
|seealso= [[Arma: Airport IDs]] [[land]] [[setAirportSide]] [[assignToAirport]] [[allAirports]]
}}
}}
<dl class="command_description">
<dd class="notedate">Posted on November 8, 2014 - 22:59 (UTC)</dd>
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>
<dd class="note">
In Arma 3 (1.34) landAt only works for fixed-wing aircraft. Rotary-wing craft ignore this command.
</dd>
</dl>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 19:10, 13 March 2021

Hover & click on the images for description

Description

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.
Arma 3
Since 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.
To make a helicopter land see land command.
Groups:
Unit ControlRoads and Airports

Syntax

Syntax:
plane landAt ID
Parameters:
plane: Object - A plane
ID: Number - Airport ID
Return Value:
Nothing

Alternative Syntax

Syntax:
plane landAt airportObject Template:Since
Parameters:
plane: Object
airportObject: Object
Return Value:
Nothing

Examples

Example 1:
_plane1 landAt 1;
Example 2:
_dynamicAirport1 = "DynamicAirport_01_F" createVehicle position player; _plane1 landAt _dynamicAirport1;

Additional Information

See also:
Arma: Airport IDs land setAirportSide assignToAirport allAirports

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note