Prototype/Car: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Protected "Prototype/Car": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Removed old prototype docs)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''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]
<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]


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><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>
 
 
 
{{Prototype parent|Prototype/Vehicle}}
Entity with specialized properties for acceleration, braking, and turning.
 
{{Prototype TOC|car}}
 
== Usage in base ==
*[[Car]]
*[[Tank]]
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Vehicle]].
 
{{Prototype property|animation|[[Types/RotatedAnimation|RotatedAnimation]]}}
Animation speed 1 means 1 frame per tile.
 
{{Prototype property|effectivity|[[Types/double|double]]}}
Modifies the efficiency of energy transfer from burner output to wheels.
 
{{Prototype property|consumption|[[Types/Energy|Energy]]}}
 
{{Prototype property|rotation_speed|[[Types/double|double]]}}
 
{{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.
 
{{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}}
Size of the car inventory.
 
== Optional properties ==
 
{{Prototype property|turret_animation|[[Types/RotatedAnimation|RotatedAnimation]]|optional=true}}
Animation speed 1 means 1 frame per tile.
 
{{Prototype property|light_animation|[[Types/RotatedAnimation|RotatedAnimation]]|optional=true}}
Must have the same frame count as <code>animation</code>.
 
{{Prototype property|render_layer|[[Types/RenderLayer|RenderLayer]]|"object"|optional=true}}
 
{{Prototype property|tank_driving|[[Types/bool|bool]]|false|optional=true}}
If this car prototype uses tank controls to drive.
 
{{Prototype property|has_belt_immunity|[[Types/bool|bool]]|false|optional=true}}
If this car is immune to movement by belts.
 
{{Prototype property|immune_to_tree_impacts|[[Types/bool|bool]]|false|optional=true}}
If this car gets damaged by driving over/against [[Prototype/Tree]]s.
 
{{Prototype property|immune_to_rock_impacts|[[Types/bool|bool]]|false|optional=true}}
If this car gets damaged by driving over/against [[Prototype/SimpleEntity#count_as_rock_for_filtered_deconstruction|rocks]].
 
{{Prototype property|immune_to_cliff_impacts|[[Types/bool|bool]]|true|optional=true}}
If this car gets damaged by driving against [[Prototype/Cliff]]s.
 
{{Prototype property|turret_rotation_speed|[[Types/double|double]]|0.01|optional=true}}
 
{{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.
 
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}}
 
{{Prototype property|sound_no_fuel|[[Types/Sound|Sound]]|optional=true}}
 
{{Prototype property|darkness_to_render_light_animation|[[Types/float|float]]|0.3|optional=true}}
 
{{Prototype property|track_particle_triggers|[[Types/FootstepTriggerEffectList|FootstepTriggerEffectList]]|optional=true}}
 
{{Prototype property|guns|[[Types/table|table]] of [[Types/string|string]]|optional=true}}
The names of the [[Prototype/Gun]]s 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.