Prototype/SpiderVehicle: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated styling of prototype doc migration note)
(Removed old prototype docs)
 
Line 2: Line 2:


</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>
</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}}
The [[spidertron]].
{{Prototype TOC|spider-vehicle}}
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Vehicle]].
{{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]]}}
{{Prototype property|graphics_set|[[Types/SpiderVehicleGraphicsSet|SpiderVehicleGraphicsSet]]}}
{{Prototype property|spider_engine|[[Types/SpiderEnginePrototype|SpiderEnginePrototype]]}}
{{Prototype property|height|[[Types/float|float]]}}
The height of the spider affects the shooting height and the drawing of the graphics and lights.
{{Prototype property|chunk_exploration_radius|[[Types/uint32|uint32]]}}
{{Prototype property|movement_energy_consumption|[[Types/Energy|Energy]]}}
{{Prototype property|automatic_weapon_cycling|[[Types/bool|bool]]}}
{{Prototype property|chain_shooting_cooldown_modifier|[[Types/float|float]]}}
This is applied whenever the spider shoots (manual and automatic targeting), <code>automatic_weapon_cycling</code> is true and the next gun in line (which is then selected) has ammo.<br>
When all of the above is the case, the chain_shooting_cooldown_modifier is a multiplier on the remaining shooting cooldown: <code><nowiki>cooldown = (remaining_cooldown × chain_shooting_cooldown_modifier)</nowiki></code>. chain_shooting_cooldown_modifier is intended to be in the range of 0 to 1. This means that setting chain_shooting_cooldown_modifier to 0 reduces the remaining shooting cooldown to 0 while a chain_shooting_cooldown_modifier of 1 does not affect the remaining shooting cooldown at all.
== Optional properties ==
{{Prototype property|torso_rotation_speed|[[Types/float|float]]|1|optional=true}}
The orientation of the torso of the spider affects the shooting direction and the drawing of the graphics and lights.
{{Prototype property|torso_bob_speed|[[Types/float|float]]|1|optional=true}}
Cannot be negative.
{{Prototype property|trash_inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]|0|optional=true}}
If set to 0 then the spider will not have a '''Logistics''' tab.
{{Prototype property|guns|[[Types/table|table]] of [[Types/string|string]]s of prototype names|optional=true}}
The guns this spider vehicle uses.

Latest revision as of 14:33, 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/SpiderVehiclePrototype.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.