~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:GetUnitMaxAmmo|Get]]
* [[4rpl:commands:SetUnitMaxAmmo|Set]]
====== 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))
<=[[4rpl:start| Index]]