Prototype/ArtilleryTurret
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.
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/ArtilleryTurret
An artillery turret.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
gun
Type: string
Name of a Prototype/Gun.
inventory_size
Type: ItemStackIndex
Must be > 0.
ammo_stack_limit
Type: ItemCountType
Must be > 0.
automated_ammo_count
Type: ItemCountType
turret_rotation_speed
Type: double
manual_range_modifier
Type: double
Must be positive.
Optional properties
alert_when_attacking
Type: bool
Default: true
disable_automatic_firing
Type: bool
Default: false
base_picture_secondary_draw_order
Type: uint8
Default: 0
base_picture_render_layer
Type: RenderLayer
Default: "lower-object"
base_shift
Type: vector
base_picture
Type: Animation4Way
cannon_base_pictures
Type: RotatedSprite
cannon_barrel_pictures
Type: RotatedSprite
rotating_sound
Type: InterruptibleSound
rotating_stopped_sound
Type: Sound
turn_after_shooting_cooldown
Type: uint16
Default: 0
cannon_parking_frame_count
Type: uint16
Default: 0
cannon_parking_speed
Type: uint16
Default: 1
cannon_barrel_recoil_shiftings
cannon_barrel_recoil_shiftings_load_correction_matrix
Type: table of Vector3D
Only loaded if cannon_barrel_recoil_shiftings
is loaded.
cannon_barrel_light_direction
Type: Vector3D
Only loaded if cannon_barrel_recoil_shiftings
is loaded.