Index

GetUnitMaxAmmo

GetUnitMaxAmmo(<-unit) ->maxAmmo

Description

Pushes the max ammo of the unit to the stack. If max ammo is less than ammo, then ammo is lowered to equal max ammo.

Examples

trace(GetUnitMaxAmmo(self))

Index