Prototype/Vehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 65: Line 65:


The name of the equipment grid this vehicle has.
The name of the equipment grid this vehicle has.
=== minimap_representation ===
'''Type''': [[Types/Sprite]]
=== selected_minimap_representation ===
'''Type''': [[Types/Sprite]]

Revision as of 13:56, 5 March 2019

Basics

This type is abstract and cannot be created directly.

Abstract base of all vehicles. Extends Prototype/EntityWithHealth.

Extensions

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