Prototype/Vehicle: Difference between revisions
m (→Optional properties: whitespace) |
(→Optional properties: linked equipment grid, minimap representation descriptions) |
||
Line 42: | Line 42: | ||
{{Prototype property|equipment_grid|[[Types/string|string]]|optional=true}} | {{Prototype property|equipment_grid|[[Types/string|string]]|optional=true}} | ||
The name of the equipment grid this vehicle has. | The name of the [[Prototype/EquipmentGrid|equipment grid]] this vehicle has. | ||
{{Prototype property|minimap_representation|[[Types/Sprite|Sprite]]|optional=true}} | {{Prototype property|minimap_representation|[[Types/Sprite|Sprite]]|optional=true}} | ||
The sprite that represents this vehicle on the map/minimap. | |||
{{Prototype property|selected_minimap_representation|[[Types/Sprite|Sprite]]|optional=true}} | {{Prototype property|selected_minimap_representation|[[Types/Sprite|Sprite]]|optional=true}} | ||
The sprite that represents this vehicle on the map/minimap when it is selected. |
Revision as of 09:50, 17 September 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle
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
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
weight
Type: double
Must be positive.
Weight of the entity used for physics calculation when car hits something.
braking_power or braking_force
Type: Energy or double
Two different ways to set braking force. At least one must exist. Must be positive.
friction or friction_force
Type: double
Two different ways to set friction force. At least one must exist. Must be positive.
energy_per_hit_point
Type: double
Optional properties
terrain_friction_modifier
Type: float
Default: 1
Must be in the [0, 1] interval.
sound_minimum_speed
Type: double
Default: 1 / 60.0
Must be positive.
stop_trigger_speed
Type: double
Default: 0.0
crash_trigger
Type: TriggerEffect
stop_trigger
Type: TriggerEffect
equipment_grid
Type: string
The name of the equipment grid this vehicle has.
minimap_representation
Type: Sprite
The sprite that represents this vehicle on the map/minimap.
selected_minimap_representation
Type: Sprite
The sprite that represents this vehicle on the map/minimap when it is selected.