airportSide: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.08 | |1.08 | ||
|gr1= Sides | |gr1= Sides | ||
|gr2= Roads and Airports | |gr2= Roads and Airports | ||
| Gets the side of an airport, set by [[setAirportSide]]. Default side is [[sideUnknown]]. | | Gets the side of an airport, set by [[setAirportSide]]. Default side is [[sideUnknown]]. | ||
Line 13: | Line 13: | ||
|pr= When used on a non-existent airport id: | |pr= When used on a non-existent airport id: | ||
* negative numbers will always return [[sideUnknown]] | * negative numbers will always return [[sideUnknown]] | ||
* positive numbers may return [[east]], [[west]], [[resistance]], [[sideEmpty]], [[sideUnknown]], [[sideAmbientLife]], or 'ERROR' (see [[#Notes|Notes]]). | * positive numbers may return [[east]], [[west]], [[resistance]], [[sideEmpty]], [[sideUnknown]], [[sideAmbientLife]], or 'ERROR' (see [[#Notes|Notes]]). | ||
| [[airportSide]] id | | [[airportSide]] id | ||
|p1= id: [[Number]] | |p1= id: [[Number]] | ||
| [[Side]] | | [[Side]] | ||
|s2= [[airportSide]] target {{Since|arma3|1.68|y}} | |s2= [[airportSide]] target {{Since|arma3|1.68|y}} | ||
|p21= target: [[Object]] |PARAMETER21= | |p21= target: [[Object]] |PARAMETER21= | ||
|r2= [[Side]] | |r2= [[Side]] | ||
|x1= <code>[[private]] _airportSide = [[airportSide]] 0;</code> | |x1= <code>[[private]] _airportSide = [[airportSide]] 0;</code> | ||
| [[Arma: Airport IDs]], [[setAirportSide]], [[land]], [[landAt]], [[assignToAirport]], [[allAirports]] | | [[Arma: Airport IDs]], [[setAirportSide]], [[land]], [[landAt]], [[assignToAirport]], [[allAirports]] | ||
}} | }} | ||
Revision as of 00:01, 18 January 2021
Description
- Description:
- Gets the side of an airport, set by setAirportSide. Default side is sideUnknown.
- Problems:
- When used on a non-existent airport id:
- negative numbers will always return sideUnknown
- positive numbers may return east, west, resistance, sideEmpty, sideUnknown, sideAmbientLife, or 'ERROR' (see Notes).
- Groups:
- SidesRoads and Airports
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
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 (
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