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

# Factorio Prototype Docs Version 2.0.77

# AmmoSourceType - Prototype Docs

## AmmoSourceType :: union

Used to allow specifying different ammo effects depending on which kind of entity the ammo is used in.

If ammo is used in an entity that isn't covered by the defined source_types, e.g. only `"player"` and `"vehicle"` are defined and the ammo is used by a turret, the first defined AmmoType in the AmmoItemPrototype::ammo_type array is used.

#### Union members

`"default"` |
`"player"` |
`"turret"` |
`"vehicle"` |

Type used in

- AmmoType::source_type