Definition of actual parameters used in attack.
struct
TriggertrueDescribes actions taken upon attack happening.
booleantrueWhen true, the gun will be able to shoot even when the target is out of range. Only applies when target_type equals "position". The gun will fire at the maximum range in the direction of the target position.
EnergytrueEnergy consumption of a single shot, if applicable.
doubletrueAffects the range value of the shooting gun prototype's BaseAttackParameters to give a modified maximum range. The min_range value of the gun is unaffected.
This has no effect on artillery turrets and wagons even though the bonus appears in the GUI. Forum thread.
doubletruefloattrue"entity" | "position" | "direction"true"entity" fires at an entity, "position" fires directly at a position, "direction" fires in a direction.
If this is "entity", clamp_position is forced to be false.
AmmoSourceTypetrueOnly exists (and is then mandatory) if the AmmoItemPrototype::ammo_type this AmmoType is defined on has multiple ammo types.
Defines for which kind of entity this ammo type applies. Each entity kind can only be used once per array.
Array<EntityID>trueList of entities that can be targeted by this ammo type.