Prototype/Vehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
{{Prototype parent|Prototype/EntityWithHealth}}
Abstract base of all vehicles.


== Basics ==
{{Prototype TOC|''abstract''}}
This type is abstract and cannot be created directly.
 
Abstract base of all vehicles. Extends [[Prototype/EntityWithHealth]].


== Extensions ==
== Extensions ==
Line 17: Line 15:
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].


=== weight ===
{{Prototype property|weight|[[Types/double|double]]}}
'''Type''': [[Types/double]]
 
Must be positive.  
Must be positive.  
Weight of the entity used for physics calculation when car hits something.
Weight of the entity used for physics calculation when car hits something.


=== braking_power or braking_force ===
{{Prototype property|braking_power or braking_force|[[Types/Energy|Energy]] or [[Types/double|double]]}}
'''Type''': [[Types/Energy]] or [[Types/double]]
 
Two different ways to set braking force. At least one must exist. Must be positive.
Two different ways to set braking force. At least one must exist. Must be positive.


=== friction or friction_force ===
{{Prototype property|friction or friction_force|[[Types/double|double]]}}
'''Type''': [[Types/double]]
 
Two different ways to set friction force. At least one must exist. Must be positive.
Two different ways to set friction force. At least one must exist. Must be positive.


=== energy_per_hit_point ===
{{Prototype property|energy_per_hit_point|[[Types/double|double]]}}
'''Type''': [[Types/double]]


== Optional properties ==
== Optional properties ==


=== terrain_friction_modifier ===
{{Prototype property|terrain_friction_modifier|[[Types/float|float]]|1|optional=true}}
'''Type''': [[Types/float]]
 
'''Default''': 1
 
Must be in the [0, 1] interval.
Must be in the [0, 1] interval.


=== sound_minimum_speed ===
'''Type''': [[Types/double]]
'''Default''': 1 / 60.0


{{Prototype property|sound_minimum_speed|[[Types/double|double]]|1 / 60.0|optional=true}}
Must be positive.
Must be positive.


=== stop_trigger_speed ===
{{Prototype property|stop_trigger_speed|[[Types/double|double]]|0.0|optional=true}}
'''Type''': [[Types/double]]
 
'''Default''': 0.0
 
=== crash_trigger ===
'''Type''': [[Types/TriggerEffect]]


=== stop_trigger ===
{{Prototype property|crash_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}}
'''Type''': [[Types/TriggerEffect]]


=== equipment_grid ===
{{Prototype property|stop_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}}
'''Type''': [[Types/string]]


{{Prototype property|equipment_grid|[[Types/string|string]]|optional=true}}
The name of the equipment grid this vehicle has.
The name of the equipment grid this vehicle has.


=== minimap_representation ===
{{Prototype property|minimap_representation|[[Types/Sprite|Sprite]]|optional=true}}
'''Type''': [[Types/Sprite]]


=== selected_minimap_representation ===
{{Prototype property|selected_minimap_representation|[[Types/Sprite|Sprite]]|optional=true}}
'''Type''': [[Types/Sprite]]

Revision as of 20:57, 5 August 2019

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

Optional properties

Template:Prototype property Must be in the [0, 1] interval.


Template:Prototype property Must be positive.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property The name of the equipment grid this vehicle has.

Template:Prototype property

Template:Prototype property