- Documentation
- Shared functions
- getPickupAmmo
Function
getPickupAmmo
Returns the amount of ammo in a weapon pickup.
Syntax
int getPickupAmmo(pickup thePickup)Arguments
thePickuppickup- The pickup.
Returns
Ammo amount (0 for other types).
Example
local pickup = createPickup(0, 0, 3, 2, 31, 30000, 200)
outputDebugString("Naboje: " .. getPickupAmmo(pickup))