Prototype/Locomotive: Difference between revisions
Jump to navigation
Jump to search
(Converted to SMW format) |
(1.1.55: max_snap_to_train_stop_distance added) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
{{Prototype property|front_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | {{Prototype property|front_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | ||
{{Prototype property|front_light_pictures|[[Types/RotatedSprite|RotatedSprite]]|optional=true}} | |||
{{Prototype property|darkness_to_render_light_animation|[[Types/float|float]]|0.3|optional=true}} | |||
{{Prototype property|max_snap_to_train_stop_distance|[[Types/float|float]]|3.0|optional=true}} | |||
In tiles. A locomotive will snap to a nearby train stop when the player places it within this distance to the stop. |
Latest revision as of 14:39, 25 February 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle » Prototype/RollingStock » Prototype/Locomotive
A locomotive.
Mandatory properties
This prototype inherits all the properties from Prototype/RollingStock.
max_power
Type: Energy
reversing_power_modifier
Type: double
burner or energy_source
Type: EnergySource
Must be a burner energy source when using "burner", otherwise it can also be a void energy source.
Optional properties
front_light
Type: LightDefinition
front_light_pictures
Type: RotatedSprite
darkness_to_render_light_animation
Type: float
Default: 0.3
max_snap_to_train_stop_distance
Type: float
Default: 3.0
In tiles. A locomotive will snap to a nearby train stop when the player places it within this distance to the stop.