VariationalAction2/Tramtypes

From GRFSpecs
< VariationalAction2
Revision as of 11:29, 28 December 2019 by Andrew350 (talk | contribs) (initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

Variables

Variable Size Version Description
40 B Supported by OpenTTD 1.101.10 Not supported by TTDPatch Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline.
41 B Supported by OpenTTD 1.101.10 Not supported by TTDPatch Enhanced tunnels; entrance has track above. Always 0 in OpenTTD.
42 B Supported by OpenTTD 1.101.10 Not supported by TTDPatch Level crossing status: 0 if open (or not a crossing), 1 if closed.
43 D Supported by OpenTTD 1.101.10 Not supported by TTDPatch Depot construction date (long format, 0 based); other: current date
44 B Supported by OpenTTD 1.101.10 Not supported by TTDPatch Town zone of the tile.

Description

Terrain type (40)

Format: byte

value Meaning
0 normal tile
1 desert tile
2 rain forest tile
4 tile 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