Types/AmmoSourceType: Difference between revisions
Jump to navigation
Jump to search
(Created page with "A Types/string. Either "default", "player", "turret" or "vehicle".") |
(More description) |
||
Line 1: | Line 1: | ||
A [[Types/string]]. Either "default", "player", "turret" or "vehicle". | A [[Types/string|string]]. Either "default", "player", "turret" or "vehicle". | ||
Used in [[Types/AmmoType]] by [[Prototype/AmmoItem#ammo_type]], to enable 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 array in [[Prototype/AmmoItem#ammo_type]] is used. |
Revision as of 09:17, 19 July 2021
A string. Either "default", "player", "turret" or "vehicle".
Used in Types/AmmoType by Prototype/AmmoItem#ammo_type, to enable 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 array in Prototype/AmmoItem#ammo_type is used.