I tried to create a gun with a narrow field of fire, but the values were not acted on and the gun was still able to turn in a full 360 degree circle.
Code: Select all
local Gun = table.deepcopy(data.raw["gun"]["artillery-wagon-cannon"])
Gun.name = 'artillery-wagon-cannon-22'
Gun.attack_parameters.turn_range = 22.5 / 360.0
Gun.turret_base_has_direction = true
data:extend{Gun}