Prototype/ArtilleryTurret: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (gun description to use prototype/gun instead of item)
(Removed old prototype docs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithOwner}}
<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/ArtilleryTurretPrototype.html https://lua-api.factorio.com/latest/prototypes/ArtilleryTurretPrototype.html]
An [[artillery turret]].


{{Prototype TOC|artillery-turret}}
</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>
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithOwner]].
 
{{Prototype property|gun|[[Types/string|string]]}}
Name of a [[Prototype/Gun]].
 
{{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}}
Must be > 0.
 
{{Prototype property|ammo_stack_limit|[[Types/ItemCountType|ItemCountType]]}}
Must be > 0.
 
{{Prototype property|automated_ammo_count|[[Types/ItemCountType|ItemCountType]]}}
 
{{Prototype property|turret_rotation_speed|[[Types/double|double]]}}
 
{{Prototype property|manual_range_modifier|[[Types/double|double]]}}
Must be positive.
 
== Optional properties ==
 
{{Prototype property|alert_when_attacking|[[Types/bool|bool]]|true|optional=true}}
 
{{Prototype property|disable_automatic_firing|[[Types/bool|bool]]|false|optional=true}}
 
{{Prototype property|base_picture_secondary_draw_order|[[Types/uint8|uint8]]|0|optional=true}}
 
{{Prototype property|base_picture_render_layer|[[Types/RenderLayer|RenderLayer]]|"lower-object"|optional=true}}
 
{{Prototype property|base_shift|[[Types/vector|vector]]|optional=true}}
 
{{Prototype property|base_picture|[[Types/Animation4Way|Animation4Way]]|optional=true}}
 
{{Prototype property|cannon_base_pictures|[[Types/RotatedSprite|RotatedSprite]]|optional=true}}
 
{{Prototype property|cannon_barrel_pictures|[[Types/RotatedSprite|RotatedSprite]]|optional=true}}
 
{{Prototype property|rotating_sound|[[Types/InterruptibleSound|InterruptibleSound]]|optional=true}}
 
{{Prototype property|rotating_stopped_sound|[[Types/Sound|Sound]]|optional=true}}
 
{{Prototype property|turn_after_shooting_cooldown|[[Types/uint16|uint16]]|0|optional=true}}
 
{{Prototype property|cannon_parking_frame_count|[[Types/uint16|uint16]]|0|optional=true}}
 
{{Prototype property|cannon_parking_speed|[[Types/uint16|uint16]]|1|optional=true}}
 
{{Prototype property|cannon_barrel_recoil_shiftings|[[Types/table|table]] of [[Types/Vector3D|Vector3D]]|optional=true}}
 
{{Prototype property|cannon_barrel_recoil_shiftings_load_correction_matrix|[[Types/table|table]] of [[Types/Vector3D|Vector3D]]|optional=true}}
Only loaded if <code>cannon_barrel_recoil_shiftings</code> is loaded.
 
{{Prototype property|cannon_barrel_light_direction|[[Types/Vector3D|Vector3D]]|optional=true}}
Only loaded if <code>cannon_barrel_recoil_shiftings</code> is loaded.

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/ArtilleryTurretPrototype.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.