VariationalAction2/Railtypes

From GRFSpecs

Jump to: navigation, search

Contents

Introduction

Variables

Variable SizeVersion Description
40BSupported by OpenTTD 1.0 (r19056)1.0 Not supported by TTDPatchTerrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline.
41BSupported by OpenTTD 1.0 (r19056)1.0 Not supported by TTDPatchEnhanced tunnels; entrance has track above. Always 0 in OpenTTD.
42BSupported by OpenTTD 1.0 (r19056)1.0 Not supported by TTDPatchLevel crossing status: 0 if open (or not a crossing), 1 if closed.
43DSupported by OpenTTD 1.0 (r19056)1.0 Not supported by TTDPatchDepot construction date (long format, 0 based); other: current date
44BSupported by OpenTTD 1.2 (r23866)1.2 Not supported by TTDPatchTown zone of the tile. (Only available for level crossings and depots.)

Description

Terrain type (40)

Format: byte

valueMeaning
0normal tile
1desert tile
2rain forest tile
4tile on or above snow line

Enhanced tunnels (41)

Format: byte

This variable will always return 0 and is reserved for future use with enhanced tunnels.

Level crossing status (42)

Format: byte

This variable returns 1, if a crossing is closed. If the crossing is open or the tile is no level crossing, the return value is 0.

Example

Personal tools
advertisement