airportSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated)
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(66 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.08


|1.08|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Checks a side of the airport. [[ArmA:Airport ID|ID]] is the number to identify which airport on the island you want to check.  
|game3= arma2oa
|version3= 1.50


Possible values for sara are:
|game4= tkoh
|version4= 1.00


* 0 - Paraiso
|game5= arma3
* 1 - Rahmadi
|version5= 0.50
* 2 - Pita
* 3 - Antigua |= Description
____________________________________________________________________________________________


| '''airportSide''' id |= Syntax
|gr1= Sides


|p1= id: [[Number]] |= Parameter 1
|gr2= Roads and Airports


| [[Side]] |= Return value
|descr= Gets the side of an airport, set by [[setAirportSide]]. Default side is [[sideUnknown]].
____________________________________________________________________________________________
{{Feature|informative|See [[Arma: Airport IDs]] for a list of airport ids.}}
 
|pr= When used on a non-existent airport id:
|x1= <pre>airportSide 0</pre> |= Example 1
* negative numbers will always return [[sideUnknown]]
____________________________________________________________________________________________
* positive numbers may return [[east]], [[west]], [[resistance]], [[sideEmpty]], [[sideUnknown]], [[sideAmbientLife]], or 'ERROR' (see [[#Notes|Notes]]).


| [[setAirportSide]] |= See also
|s1= [[airportSide]] id


|p1= id: [[Number]]
|r1= [[Side]]
|s2= [[airportSide]] target
|s2since= arma3 1.68
|p21= target: [[Object]]
|r2= [[Side]]
|x1= <sqf>private _airportSide = airportSide 0;</sqf>
|seealso= [[Arma: Airport IDs]] [[setAirportSide]] [[land]] [[landAt]] [[assignToAirport]] [[allAirports]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
<dt><dt>
<dd class="notedate">Posted on 2020-03-12 23:01 (UTC)</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
Weird behaviour encountered on various ({{arma3}}) terrains ({{hl|n/a}} is 'ERROR'):
<div style="overflow: auto">
{| class="wikitable" style="font-size: 0.9em"
! Terrain !! 0 (airport id) !! 1 !! 2 !! 3 !! 4 !! 5 !! 6 !! 7 !! 8 !! 9 !! 10 !! 11 !! 12 !! 13 !! 14 !! 15 !! 16 !! 17 !! 18 !! 19 !! 20 !! 21 !! 22 !! 23 !! 24 !! 25 !! 26 !! 27 !! 28 !! 29 !! 30 !! 31 !! 32 !! 33 !! 34 !! 35 !! 36 !! 37 !! 38 !! 39 !! 40 !! 41 !! 42 !! 43 !! 44 !! 45 !! 46 !! 47 !! 48 !! 49 !! 50 !! 51 !! 52 !! 53 !! 54 !! 55 !! 56 !! 57 !! 58 !! 59 !! 60 !! 61 !! 62 !! 63 !! 64 !! 65 !! 66 !! 67 !! 68 !! 69 !! 70 !! 71 !! 72 !! 73 !! 74 !! 75 !! 76 !! 77 !! 78 !! 79 !! 80 !! 81 !! 82 !! 83 !! 84 !! 85 !! 86 !! 87 !! 88 !! 89 !! 90 !! 91 !! 92 !! 93 !! 94 !! 95 !! 96 !! 97 !! 98 !! 99
|-
| VR || [[sideUnknown]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]]
|-
| Stratis || [[sideUnknown]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[sideUnknown]] || [[east]] || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}}
|-
| Altis || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[resistance]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[sideEmpty]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[west]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]]
|-
| Livonia || [[sideUnknown]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[resistance]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[sideUnknown]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}}
|-
| Malden || [[sideUnknown]] || [[sideUnknown]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[resistance]] || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[sideAmbientLife]] || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[resistance]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}}
|-
| Tanoa || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || [[west]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || [[east]] || [[east]] || [[east]] || [[east]] || {{n/a}} || {{n/a}} || [[east]] || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}} || [[east]] || {{n/a}} || {{n/a}} || {{n/a}} || {{n/a}}
|}
</div>
</dd>
 
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:11, 15 March 2024

Hover & click on the images for description

Description

Description:
Gets the side of an airport, set by setAirportSide. Default side is sideUnknown.
See Arma: Airport IDs for a list of airport ids.
Problems:
When used on a non-existent airport id:
Groups:
SidesRoads and Airports

Syntax

Syntax:
airportSide id
Parameters:
id: Number
Return Value:
Side

Alternative Syntax

Syntax:
airportSide target
Parameters:
target: Object
Return Value:
Side

Examples

Example 1:
private _airportSide = airportSide 0;

Additional Information

See also:
Arma: Airport IDs setAirportSide land landAt 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
Posted on 2020-03-12 23:01 (UTC)
Lou Montana
Weird behaviour encountered on various (Arma 3) terrains (n/a is 'ERROR'):
Terrain 0 (airport id) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
VR sideUnknown N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A east east N/A N/A east east east east east east N/A N/A east N/A N/A N/A N/A N/A N/A N/A N/A N/A east east east east N/A N/A east N/A N/A N/A N/A east east east east N/A east east east east N/A east east east east N/A east east N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east
Stratis sideUnknown N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A N/A N/A sideUnknown east N/A east N/A N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A east N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east N/A N/A east east N/A east east east N/A N/A N/A east east east east east east east N/A east east east N/A N/A
Altis sideUnknown sideUnknown sideUnknown sideUnknown sideUnknown sideUnknown resistance N/A N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A east sideEmpty N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A N/A N/A west N/A N/A N/A N/A N/A east N/A east east east east N/A east east N/A east east east N/A east N/A east east east east east east
Livonia sideUnknown N/A east east east east east east east east east east east east east N/A N/A N/A N/A N/A N/A N/A N/A N/A east east east east N/A east N/A N/A east east N/A east east east east east east east east east N/A east east east east east east east east east N/A resistance east east east east east east N/A east east east east east east east east east east east east N/A east sideUnknown east east east east east N/A east east east N/A east east east east east east east N/A N/A N/A east N/A
Malden sideUnknown sideUnknown N/A N/A N/A N/A east N/A N/A N/A N/A resistance N/A N/A N/A east east east N/A east east N/A east N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east N/A N/A N/A N/A sideAmbientLife N/A east N/A N/A east east resistance east N/A N/A east east east N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A east east east east east east N/A N/A
Tanoa sideUnknown sideUnknown sideUnknown sideUnknown sideUnknown N/A N/A N/A N/A N/A east N/A east N/A east east N/A east east east east east N/A east east N/A N/A east east east N/A east east N/A east east N/A east east N/A N/A N/A east west east N/A N/A east east east N/A east N/A N/A east east east east east east east east N/A east east east east east east east N/A east east east N/A east N/A N/A N/A N/A east N/A east east east east N/A N/A east east N/A N/A N/A N/A N/A east N/A N/A N/A N/A