Difference between revisions of "NML:Units"
From GRFSpecs
Jump to navigationJump to search (content of nml r1625) |
(add nav template) |
||
Line 1: | Line 1: | ||
+ | {{NMLNavNoSubpages}} |
||
+ | |||
Units can be used for values of speed, power and weight. See below for an example on their usage. Refer to the table for an overview of supported units. |
Units can be used for values of speed, power and weight. See below for an example on their usage. Refer to the table for an overview of supported units. |
||
Revision as of 16:57, 21 August 2011
Vehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Terrain
No subpages in this chapter.
Units can be used for values of speed, power and weight. See below for an example on their usage. Refer to the table for an overview of supported units.
item(FEAT_TRAINS, some_train) { property { speed: 120 km/h } }
Type | Unit string | SI Equivalent |
---|---|---|
Speed | m/s | - |
Speed | km/h | 1 km/h = 0.2778 m/s |
Speed | mph | 1 mph = 0.4470 m/s |
Power | kW | - |
Power | hp | 1 hp = 0.7457 kW (Imperial) |
Power | hpI | 1 hpI = 0.7457 kW (Imperial) |
Power | hpM | 1 hpM = 0.7355 kW (Metric) |
Weight | kg | - |
Weight | ton | 1000 kg |
Weight | tons | 1000 kg |