~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetUnitAmmo|Get]] * [[4rpl:commands:SetUnitAmmo|Set]] ====== SetUnitAmmo ====== SetUnitAmmo(<-unit <-amt) ===== Description ===== Sets the ammo of the unit. A value of 1 is how much a packet normally delivers. The ammo can not exceed the max ammo, so set max ammo first. Amt values less than zero are changed to zero. ===== Examples ===== SetUnitMaxAmmo(self 100) SetUnitAmmo(self 100) <=[[4rpl:start| Index]]