Prototype/Vehicle: Difference between revisions
(1.1.51: Prototype/EntityWithOwner added) |
(Migrated prototype doc to separate website) |
||
Line 1: | Line 1: | ||
'''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 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]. | |||
{{Prototype parent|Prototype/EntityWithOwner}} | {{Prototype parent|Prototype/EntityWithOwner}} | ||
Abstract base of all vehicles. | Abstract base of all vehicles. |
Revision as of 17:53, 16 August 2023
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.
Template:Prototype parent Abstract base of all vehicles.
Extensions
- Prototype/Car car
- Prototype/RollingStock <abstract>
- Prototype/ArtilleryWagon artillery-wagon
- Prototype/CargoWagon cargo-wagon
- Prototype/FluidWagon fluid-wagon
- Prototype/Locomotive locomotive
- Prototype/SpiderVehicle spider-vehicle
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
Template:Prototype property Must be positive. Weight of the entity used for physics calculation when car hits something.
Template:Prototype property Two different ways to set braking force. At least one must exist. Must be positive.
Template:Prototype property Two different ways to set friction force. At least one must exist. Must be positive.
Template:Prototype property
The (movement) energy used per hit point (1 hit point = 1 health damage) taken and dealt for this vehicle during collisions. The smaller the number, the more damage this vehicle and the rammed entity take during collisions: damage = energy / energy_per_hit_point
.
Optional properties
Template:Prototype property Must be in the [0, 1] interval.
Template:Prototype property Must be positive. Sound is scaled by speed.
Template:Prototype property Must be positive. Sound is scaled by speed.
Template:Prototype property The name of the equipment grid this vehicle has.
Template:Prototype property The sprite that represents this vehicle on the map/minimap.
Template:Prototype property The sprite that represents this vehicle on the map/minimap when it is selected.
Template:Prototype property Determines whether this vehicle accepts passengers. This includes both drivers and gunners, if applicable.