Difference between revisions of "NML:Units"
From GRFSpecs
Jump to navigationJump to search (add nav template) |
|||
Line 6: | Line 6: | ||
item(FEAT_TRAINS, some_train) { |
item(FEAT_TRAINS, some_train) { |
||
property { |
property { |
||
− | speed: 120 km/h |
+ | speed: 120 km/h; |
} |
} |
||
} |
} |
Latest revision as of 20:44, 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 |