Prototype/Car: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Removed old prototype docs)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Basics ==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/CarPrototype.html https://lua-api.factorio.com/latest/prototypes/CarPrototype.html]
Prototype type: '''car'''


Entity with specialized properties for acceleration, braking, and turning. Extends [[Prototype/Vehicle]].
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
== Usage in base ==
*[[Car]]
*[[Tank]]
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Vehicle]].
 
=== animation ===
'''Type''': [[Types/RotatedAnimation]]
 
Animation speed 1 means 1 frame per tile.
 
=== effectivity ===
'''Type''': [[Types/double]]
 
Modifies the efficiency of energy transfer from burner output to wheels.
 
=== consumption ===
'''Type''': [[Types/Energy]]
 
=== rotation_speed ===
'''Type''': [[Types/double]]
 
=== burner or energy_source ===
'''Type''': [[Types/EnergySource]]
 
Must be a burner energy source when using "burner", otherwise it can also be a void energy source.
 
=== inventory_size ===
'''Type''': [[Types/ItemStackIndex]]
 
Size of the car inventory.
 
== Optional properties ==
 
=== turret_animation ===
'''Type''': [[Types/RotatedAnimation]]
 
Animation speed 1 means 1 frame per tile.
 
=== render_layer ===
'''Type''': [[Types/RenderLayer]]
 
'''Default''': "object"
 
=== tank_driving ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car prototype uses tank controls to drive.
 
=== has_belt_immunity ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car is immune to movement by belts.
 
=== immune_to_tree_impacts ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car gets damaged by driving over/against [[Prototype/Tree]]s.
 
=== immune_to_rock_impacts ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If this car gets damaged by driving over/against [[Prototype/SimpleEntity#count_as_rock_for_filtered_deconstruction|rocks]].
 
=== turret_rotation_speed ===
'''Type''': [[Types/double]]
 
'''Default''': 0.01
 
=== turret_return_timeout ===
'''Type''': [[Types/uint32]]
 
'''Default''': 60
 
Timeout in ticks specifying how long the turret must be inactive to return to the default position.
 
=== light ===
'''Type''': [[Types/LightDefinition]]
 
=== sound_no_fuel ===
'''Type''': [[Types/Sound]]
 
=== guns ===
'''Type''': [[Types/table]] of [[Types/string]]s of prototype names
 
The guns this car prototype uses.

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/CarPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.