airportSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
(Add note, better description and problems)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Checks a side of the airport. '''Id''' is the number to identify which airport on the island you want to check.  
| Gets the side of an airport, set by [[setAirportSide]]. Default side is [[sideUnknown]].
 
{{Informative | See [[ArmA: Airport ID]] for a list of airport ids.}}
See [[ArmA:Airport ID]] for more information. |DESCRIPTION=
|pr= When used on a non-existent airport id:
* negative numbers will always return [[sideUnknown]]
* positive numbers may return [[east]], [[sideUnknown]], [[sideAmbientLife]] or 'ERROR'. |PROBLEMS=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 25: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[airportSide]] 0;</code> |EXAMPLE1=
|x1= <code>[[private]] _airportSide = [[airportSide]] 0;</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 34: Line 36:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on March 12, 2020 23:01 (UTC)</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
Weird behaviour encountered on various ({{arma3}}) terrains:
<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]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]]
|-
| Stratis || [[sideUnknown]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[sideUnknown]] || [[east]] || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR''
|-
| Altis || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || GUER || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || EMPTY || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || WEST || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]]
|-
| Livonia || [[sideUnknown]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || GUER || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[sideUnknown]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR''
|-
| Malden || [[sideUnknown]] || [[sideUnknown]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || GUER || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[sideAmbientLife]] || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || GUER || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR''
|-
| Tanoa || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || [[sideUnknown]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || WEST || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || [[east]] || [[east]] || [[east]] || [[east]] || ''ERR'' || ''ERR'' || [[east]] || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR'' || [[east]] || ''ERR'' || ''ERR'' || ''ERR'' || ''ERR''
|}
</div>
</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 23:01, 12 March 2020

-wrong parameter ("Arma") defined!-1.08
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 ID for a list of airport ids.
Problems:
When used on a non-existent airport id:
Groups:
Uncategorised

Syntax

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

Alternative Syntax

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

Examples

Example 1:
private _airportSide = airportSide 0;

Additional Information

See also:
ArmA:Airport IDsetAirportSidelandlandAtassignToAirportallAirports

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

Notes

Posted on March 12, 2020 23:01 (UTC)
Lou Montana
Weird behaviour encountered on various (Arma 3) terrains:
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 ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR east east ERR ERR east east east east east east ERR ERR east ERR ERR ERR ERR ERR ERR ERR ERR ERR east east east east ERR ERR east ERR ERR ERR ERR east east east east ERR east east east east ERR east east east east ERR east east ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east
Stratis sideUnknown ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR ERR ERR sideUnknown east ERR east ERR ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR east ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east ERR ERR east east ERR east east east ERR ERR ERR east east east east east east east ERR east east east ERR ERR
Altis sideUnknown sideUnknown sideUnknown sideUnknown sideUnknown sideUnknown GUER ERR ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR east EMPTY ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR ERR ERR WEST ERR ERR ERR ERR ERR east ERR east east east east ERR east east ERR east east east ERR east ERR east east east east east east
Livonia sideUnknown ERR east east east east east east east east east east east east east ERR ERR ERR ERR ERR ERR ERR ERR ERR east east east east ERR east ERR ERR east east ERR east east east east east east east east east ERR east east east east east east east east east ERR GUER east east east east east east ERR east east east east east east east east east east east east ERR east sideUnknown east east east east east ERR east east east ERR east east east east east east east ERR ERR ERR east ERR
Malden sideUnknown sideUnknown ERR ERR ERR ERR east ERR ERR ERR ERR GUER ERR ERR ERR east east east ERR east east ERR east ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east ERR ERR ERR ERR sideAmbientLife ERR east ERR ERR east east GUER east ERR ERR east east east ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR ERR east east east east east east ERR ERR
Tanoa sideUnknown sideUnknown sideUnknown sideUnknown sideUnknown ERR ERR ERR ERR ERR east ERR east ERR east east ERR east east east east east ERR east east ERR ERR east east east ERR east east ERR east east ERR east east ERR ERR ERR east WEST east ERR ERR east east east ERR east ERR ERR east east east east east east east east ERR east east east east east east east ERR east east east ERR east ERR ERR ERR ERR east ERR east east east east ERR ERR east east ERR ERR ERR ERR ERR east ERR ERR ERR ERR

Bottom Section