Prototype/Vehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎Optional properties: linked equipment grid, minimap representation descriptions)
(Removed old prototype docs)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
<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]
Abstract base of all vehicles.


{{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/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]].
 
{{Prototype property|weight|[[Types/double|double]]}}
Must be positive.
Weight of the entity used for physics calculation when car hits something.
 
{{Prototype property|braking_power or braking_force|[[Types/Energy|Energy]] or [[Types/double|double]]}}
Two different ways to set braking force. At least one must exist. Must be positive.
 
{{Prototype property|friction or friction_force|[[Types/double|double]]}}
Two different ways to set friction force. At least one must exist. Must be positive.
 
{{Prototype property|energy_per_hit_point|[[Types/double|double]]}}
 
== Optional properties ==
 
{{Prototype property|terrain_friction_modifier|[[Types/float|float]]|1|optional=true}}
Must be in the [0, 1] interval.
 
{{Prototype property|sound_minimum_speed|[[Types/double|double]]|1 / 60.0|optional=true}}
Must be positive.
 
{{Prototype property|stop_trigger_speed|[[Types/double|double]]|0.0|optional=true}}
 
{{Prototype property|crash_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}}
 
{{Prototype property|stop_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}}
 
{{Prototype property|equipment_grid|[[Types/string|string]]|optional=true}}
The name of the [[Prototype/EquipmentGrid|equipment grid]] this vehicle has.
 
{{Prototype property|minimap_representation|[[Types/Sprite|Sprite]]|optional=true}}
The sprite that represents this vehicle on the map/minimap.
 
{{Prototype property|selected_minimap_representation|[[Types/Sprite|Sprite]]|optional=true}}
The sprite that represents this vehicle on the map/minimap when it is selected.

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.