Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# AmmoType - Runtime Docs

## AmmoType :: table

#### Table fields

action | :: array[TriggerItem]? |
target_type | :: TargetType |
clamp_position | :: boolean? | When `true`, the gun will be able to shoot even when the target is out of range. Only applies when `target_type` is `position`. The gun will fire at the maximum range in the direction of the target position. Defaults to `false`.
When `true`, the gun will be able to shoot even when the target is out of range. Only applies when `target_type` is `position`. The gun will fire at the maximum range in the direction of the target position. Defaults to `false`.
energy_consumption | :: double? | Energy consumption of a single shot, if applicable. Defaults to `0`.
Energy consumption of a single shot, if applicable. Defaults to `0`.
range_modifier | :: double? |
cooldown_modifier | :: double? |
consumption_modifier | :: float? |
target_filter | :: array[string]? | The entity prototype filter names.
The entity prototype filter names.

Concept used in

- LuaItemPrototype::get_ammo_type()
- AttackParameters