Prototype/Vehicle
Revision as of 07:59, 23 May 2018 by Bilka (talk | contribs) (Created page with "== Basics == Abstract base of all vehicles. Extends Prototype/EntityWithHealth. == Mandatory properties == This prototype inherits all the properties from Prototype/Ent...")
Basics
Abstract base of all vehicles. Extends Prototype/EntityWithHealth.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
weight
Type: Types/double
Must be positive.
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.