Prototype/Vehicle: Difference between revisions
(0.17) |
(Set prototype parent) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithHealth}} | |||
== Basics == | == Basics == | ||
This type is abstract and cannot be created directly. | This type is abstract and cannot be created directly. |
Revision as of 15:55, 24 July 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle
Basics
This type is abstract and cannot be created directly.
Abstract base of all vehicles. Extends Prototype/EntityWithHealth.
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