Prototype/RollingStock: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Converted to SMW format)
(Removed old prototype docs)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/Vehicle}}
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/RollingStockPrototype.html https://lua-api.factorio.com/latest/prototypes/RollingStockPrototype.html]
The abstract base of all rolling stock.


{{Prototype TOC|''abstract''}}
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
== Extensions ==
* [[Prototype/ArtilleryWagon]] '''artillery-wagon'''
* [[Prototype/CargoWagon]] '''cargo-wagon'''
* [[Prototype/FluidWagon]] '''fluid-wagon'''
* [[Prototype/Locomotive]] '''locomotive'''
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Vehicle]].
 
{{Prototype property|max_speed|[[Types/double|double]]}}
 
{{Prototype property|air_resistance|[[Types/double|double]]}}
 
{{Prototype property|joint_distance|[[Types/double|double]]}}
Maximum joint distance is 15.
 
Note: There needs to be border at least 0.2 between the bounding box edge and joint.
 
{{Prototype property|connection_distance|[[Types/double|double]]}}
 
{{Prototype property|pictures|[[Types/RotatedSprite|RotatedSprite]]}}
 
{{Prototype property|wheels|[[Types/RotatedSprite|RotatedSprite]]}}
 
{{Prototype property|vertical_selection_shift|[[Types/double|double]]}}
 
== Optional properties ==
 
{{Prototype property|drive_over_tie_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}}
Usually a sound to play when the rolling stock drives over a tie.
 
{{Prototype property|tie_distance|[[Types/double|double]]|10.0|optional=true}}
 
{{Prototype property|back_light|[[Types/LightDefinition|LightDefinition]]|optional=true}}
 
{{Prototype property|stand_by_light|[[Types/LightDefinition|LightDefinition]]|optional=true}}
 
{{Prototype property|horizontal_doors|[[Types/Animation|Animation]]|optional=true}}
 
{{Prototype property|vertical_doors|[[Types/Animation|Animation]]|optional=true}}
 
{{Prototype property|color|[[Types/Color|Color]]|optional=true}}
 
{{Prototype property|allow_manual_color|[[Types/bool|bool]]|true|optional=true}}
 
{{Prototype property|allow_robot_dispatch_in_automatic_mode|[[Types/bool|bool]]|false|optional=true}}

Latest revision as of 14:33, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/RollingStockPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.