Prototype/Vehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(Removed old prototype docs)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Basics ==
<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/VehiclePrototype.html https://lua-api.factorio.com/latest/prototypes/VehiclePrototype.html]
This type is abstract and cannot be created directly.


Abstract base of all vehicles. Extends [[Prototype/EntityWithHealth]].
</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/Car]] '''car'''
* [[Prototype/RollingStock]] <abstract>
** [[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/EntityWithHealth]].
 
=== weight ===
'''Type''': [[Types/double]]
 
Must be positive.
Weight of the entity used for physics calculation when car hits something.
 
=== braking_power or braking_force ===
'''Type''': [[Types/Energy]] or [[Types/double]]
 
Two different ways to set braking force. At least one must exist. Must be positive.
 
=== friction or friction_force ===
'''Type''': [[Types/double]]
 
Two different ways to set friction force. At least one must exist. Must be positive.
 
=== energy_per_hit_point ===
'''Type''': [[Types/double]]
 
== Optional properties ==
 
=== terrain_friction_modifier ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
Must be in the [0, 1] interval.
 
=== sound_minimum_speed ===
'''Type''': [[Types/double]]
 
'''Default''': 1 / 60.0
 
Must be positive.
 
=== stop_trigger_speed ===
'''Type''': [[Types/double]]
 
'''Default''': 0.0
 
=== crash_trigger ===
'''Type''': [[Types/TriggerEffect]]
 
=== stop_trigger ===
'''Type''': [[Types/TriggerEffect]]
 
=== equipment_grid ===
'''Type''': [[Types/string]]
 
The name of the equipment grid this vehicle has.
 
=== minimap_representation ===
'''Type''': [[Types/Sprite]]
 
=== selected_minimap_representation ===
'''Type''': [[Types/Sprite]]

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/VehiclePrototype.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.