Prototype/Vehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
Line 57: Line 57:
{{Prototype property|allow_passengers|[[Types/bool|bool]]|true|optional=true}}
{{Prototype property|allow_passengers|[[Types/bool|bool]]|true|optional=true}}
Determines whether this vehicle accepts passengers. This includes both drivers and gunners, if applicable.
Determines whether this vehicle accepts passengers. This includes both drivers and gunners, if applicable.
== Extra info ==
enable_inventory_bar is not apply in this prototype,However its sub-class,[[Prototype/Prototype/CargoWagon]],always has this functionality.

Revision as of 16:10, 22 October 2021

Template:Prototype parent Abstract base of all vehicles.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

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

Template:Prototype property

Template:Prototype property

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.

Extra info

enable_inventory_bar is not apply in this prototype,However its sub-class,Prototype/Prototype/CargoWagon,always has this functionality.