GetAmmoCapacity (Actor function)
int GetAmmoCapacity (class<Ammo> type)
- type: the class name of the ammo type.
The current max amount of the ammo type in the inventory. If the ammo type does not exist in the inventory, then its default max amount, as defined in its definition, is returned. If the ammo type is an invalid class, the function returns 0.
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|