Prototype/Car: 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/Vehicle}}
{{Prototype parent|Prototype/Vehicle}}
Entity with specialized properties for acceleration, braking, and turning.


== Basics ==
{{Prototype TOC|car}}
Prototype type: '''car'''
 
Entity with specialized properties for acceleration, braking, and turning. Extends [[Prototype/Vehicle]].


== Usage in base ==
== Usage in base ==
Line 13: Line 11:
This prototype inherits all the properties from [[Prototype/Vehicle]].
This prototype inherits all the properties from [[Prototype/Vehicle]].


=== animation ===
{{Prototype property|animation|[[Types/RotatedAnimation|RotatedAnimation]]}}
'''Type''': [[Types/RotatedAnimation]]
 
Animation speed 1 means 1 frame per tile.
Animation speed 1 means 1 frame per tile.


=== effectivity ===
{{Prototype property|effectivity|[[Types/double|double]]}}
'''Type''': [[Types/double]]
 
Modifies the efficiency of energy transfer from burner output to wheels.
Modifies the efficiency of energy transfer from burner output to wheels.


=== consumption ===
{{Prototype property|consumption|[[Types/Energy|Energy]]}}
'''Type''': [[Types/Energy]]


=== rotation_speed ===
{{Prototype property|rotation_speed|[[Types/double|double]]}}
'''Type''': [[Types/double]]
 
=== burner or energy_source ===
'''Type''': [[Types/EnergySource]]


{{Prototype property|burner or energy_source|[[Types/EnergySource|EnergySource]]}}
Must be a burner energy source when using "burner", otherwise it can also be a void energy source.
Must be a burner energy source when using "burner", otherwise it can also be a void energy source.


=== inventory_size ===
{{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}}
'''Type''': [[Types/ItemStackIndex]]
 
Size of the car inventory.
Size of the car inventory.


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


=== turret_animation ===
{{Prototype property|turret_animation|[[Types/RotatedAnimation|RotatedAnimation]]|optional=true}}
'''Type''': [[Types/RotatedAnimation]]
 
Animation speed 1 means 1 frame per tile.
Animation speed 1 means 1 frame per tile.


=== render_layer ===
{{Prototype property|render_layer|[[Types/RenderLayer|RenderLayer]]|"object"|optional=true}}
'''Type''': [[Types/RenderLayer]]
 
'''Default''': "object"
 
=== tank_driving ===
'''Type''': [[Types/bool]]
 
'''Default''': false


{{Prototype property|tank_driving|[[Types/bool|bool]]|false|optional=true}}
If this car prototype uses tank controls to drive.
If this car prototype uses tank controls to drive.


=== has_belt_immunity ===
{{Prototype property|has_belt_immunity|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car is immune to movement by belts.
If this car is immune to movement by belts.


=== immune_to_tree_impacts ===
{{Prototype property|immune_to_tree_impacts|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car gets damaged by driving over/against [[Prototype/Tree]]s.
If this car gets damaged by driving over/against [[Prototype/Tree]]s.


=== immune_to_rock_impacts ===
{{Prototype property|immune_to_rock_impacts|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car gets damaged by driving over/against [[Prototype/SimpleEntity#count_as_rock_for_filtered_deconstruction|rocks]].
If this car gets damaged by driving over/against [[Prototype/SimpleEntity#count_as_rock_for_filtered_deconstruction|rocks]].


=== turret_rotation_speed ===
{{Prototype property|turret_rotation_speed|[[Types/double|double]]|0.01|optional=true}}
'''Type''': [[Types/double]]
 
'''Default''': 0.01
 
=== turret_return_timeout ===
'''Type''': [[Types/uint32]]
 
'''Default''': 60


{{Prototype property|turret_return_timeout|[[Types/uint32|uint32]]|60|optional=true}}
Timeout in ticks specifying how long the turret must be inactive to return to the default position.
Timeout in ticks specifying how long the turret must be inactive to return to the default position.


=== light ===
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}}
'''Type''': [[Types/LightDefinition]]
 
=== sound_no_fuel ===
'''Type''': [[Types/Sound]]


=== guns ===
{{Prototype property|sound_no_fuel|[[Types/Sound|Sound]]|optional=true}}
'''Type''': [[Types/table]] of [[Types/string]]s of prototype names


{{Prototype property|guns|[[Types/table|table]] of [[Types/string|string]]s of prototype names|optional=true}}
The guns this car prototype uses.
The guns this car prototype uses.

Revision as of 20:59, 5 August 2019

Template:Prototype parent Entity with specialized properties for acceleration, braking, and turning.

Template:Prototype TOC

Usage in base

Mandatory properties

This prototype inherits all the properties from Prototype/Vehicle.

Template:Prototype property Animation speed 1 means 1 frame per tile.

Template:Prototype property Modifies the efficiency of energy transfer from burner output to wheels.

Template:Prototype property

Template:Prototype property

Template:Prototype property Must be a burner energy source when using "burner", otherwise it can also be a void energy source.

Template:Prototype property Size of the car inventory.

Optional properties

Template:Prototype property Animation speed 1 means 1 frame per tile.

Template:Prototype property

Template:Prototype property If this car prototype uses tank controls to drive.

Template:Prototype property If this car is immune to movement by belts.

Template:Prototype property If this car gets damaged by driving over/against Prototype/Trees.

Template:Prototype property If this car gets damaged by driving over/against rocks.

Template:Prototype property

Template:Prototype property Timeout in ticks specifying how long the turret must be inactive to return to the default position.

Template:Prototype property

Template:Prototype property

Template:Prototype property The guns this car prototype uses.