External Publication
Visit Post

OpenTTD AIs and Game Scripts • Re: RailType enum is not documented

Transport Tycoon Forums - Index page [Unofficial] February 20, 2026
Source

You can have multiple rail types a train can run on, and the only difference will be how fast the train can run on it.

HasPower is only interesting for electric (or monorail/maglev) engines since they require power from the track or catenary. So that function tells you whether the railtype in question supplies power of a type that train can use. Meanwhile a self-powered engine, like steam or diesel, should return having power on every railtype it can run on.

Statistics: Posted by jfs — 20 Feb 2026 10:30


Discussion in the ATmosphere

Loading comments...