Prototype/Turret: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17.47)
(Removed old prototype docs)
Tag: Replaced
 
(14 intermediate revisions by 3 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/TurretPrototype.html https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html]
Prototype type: '''turret'''


Extends [[Prototype/EntityWithHealth]].
</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>
 
== Extensions ==
* [[Prototype/AmmoTurret]] '''ammo-turret'''
* [[Prototype/ElectricTurret]] '''electric-turret'''
* [[Prototype/FluidTurret]] '''fluid-turret'''
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
 
=== attack_parameters ===
'''Type''': [[Types/AttackParameters]]
 
Requires ammo_type in attack_parameters.
 
=== call_for_help_radius ===
'''Type''': [[Types/double]]
 
== Optional properties ==
 
=== corpse ===
'''Type''': [[Types/string]]
 
The name of an entity.
 
=== shoot_in_prepare_state ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== turret_base_has_direction ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== random_animation_offset ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== secondary_animation ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== attack_from_start_frame ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== allow_turning_when_starting_attack ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== base_picture_secondary_draw_order ===
'''Type''': [[Types/uint8]]
 
'''Default''': 0
 
=== gun_animation_secondary_draw_order ===
'''Type''': [[Types/uint8]]
 
'''Default''': 0
 
=== base_picture_render_layer ===
'''Type''': [[Types/RenderLayer]]
 
'''Default''': "lower-object"
 
=== gun_animation_render_layer ===
'''Type''': [[Types/RenderLayer]]
 
'''Default''': "object"
 
=== base_picture ===
'''Type''': [[Types/Animation4Way]]
 
=== folded_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== preparing_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== prepared_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== prepared_alternative_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== starting_attack_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== attacking_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== energy_glow_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== ending_attack_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== folding_animation ===
'''Type''': [[Types/RotatedAnimation4Way]]
 
=== integration ===
'''Type''': [[Types/Sprite]]
 
=== glow_light_intensity ===
'''Type''': [[Types/float]]
 
'''Default''': 0
 
The intensity of light in the form of <code>energy_glow_animation</code> drawn on top of <code>energy_glow_animation</code>.
 
=== starting_attack_sound ===
'''Type''': [[Types/Sound]]
 
=== dying_sound ===
'''Type''': [[Types/Sound]]
 
=== preparing_sound ===
'''Type''': [[Types/Sound]]
 
=== folding_sound ===
'''Type''': [[Types/Sound]]
 
=== prepared_sound ===
'''Type''': [[Types/Sound]]
 
=== prepared_alternative_sound ===
'''Type''': [[Types/Sound]]
 
=== rotation_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== preparing_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== folded_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== folded_speed_secondary ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== prepared_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== prepared_speed_secondary ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== prepared_alternative_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== prepared_alternative_speed_secondary ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== prepared_alternative_chance ===
'''Type''': [[Types/float]]
 
'''Default''': 0
 
=== starting_attack_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== attacking_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== ending_attack_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== folding_speed ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== prepare_range ===
'''Type''': [[Types/double]]
 
'''Default''': The range defined in the <code>attack_parameters</code>
 
=== alert_when_attacking ===
'''Type''': [[Types/bool]]
 
'''Default''': true

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