Airports and airport tiles

Airport properties

namevalue rangecomment
namestringName of the airport
overridethe id of airport to replace / override
layoutslist of layouts
years_available[start year, last year]list of the availablility years: first and last year it can be built
ttd_airport-type0 ... 3substitute TTDPatch airport type
catchment_areacatchment area of the airport in tiles around its perimeter
noise_levelnoise generation of this airport

Airport tile properties

namevalue rangecomment
overridethe id of airport tile to override
substitutethe id of airport tile to replace
callback_flagsbitmask
animation_info
animation_speedsee speed settings
animation_triggers

Airport variables

namevalue rangecomment
layout0 .. (number of layouts - 1)Layout number of the airport (index in the layouts array)

Airport tile variables

namevalue rangecomment
terrain_type
town_radius_group
relative_x0..255X-coordinate (top right -> bottom left) of the tile relative to the northernmost tile.
relative_y0..255Y-coordinate (top left -> bottom right) of the tile relative to the northernmost tile.
relative_pos0xYYXXA combination of relative_x and relative_y in the format 0xYYXX. Useful if you want to check for a single position.
animation_frame
Variables that require a signed x,y offset. The offset is relative to the current tile. Offset 0,0 means the current tile.
namevalue rangecomment
nearby_tile_slopeWhich corners are raised on the given tile. Bit 0: west corner is above the lowest corner.
Bit 1: south corner is above the lowest corner.
Bit 2: east corner is above the lowest corner.
Bit 3: north corner is above the lowest corner.
Bit 4: this tile is a steep slope (the corner opposite to the lowest corner is 2 units higher).
See tile slopes for an illustration
nearby_tile_is_same_airport1 if the tile is part of the same airport, 0 otherwise
nearby_tile_is_water1 if the tile is water, 0 otherwise
nearby_tile_terrain_typeTILETYPE_XXTILETYPE_NORMAL, TILETYPE_DESERT, TILETYPE_RAIN_FOREST, TILETYPE_SNOW
nearby_tile_height0..120The height of the lowest corner of the given tile.
nearby_tile_classTile class
nearby_tile_animation_frame0..255Animation frame of the given tile
nearby_tile_airporttile_id0x00aa, 0xFFbb, 0xFFFE or 0xFFFF 0x00aa: The tile is an airport tile that is part of this GRF, the tile id is aa.
0xFFbb: The tile is an original airport tile with id bb.
0xFFFE: The tile is an airport tile defined in another GRF.
0xFFFF: The tile is not an airport tile or it belongs to another GRF.