unitName setAmmo [weapon,count]
Operand types
unitName:
Object[weapon,count]:
Array
Type of returned value
Description
Sets custom ammo count in the currently loaded magazine of the specified weapon.
In multiplayer the unit must be local to the computer where command is executed.
Used In
Arma3
Example
player setAmmo [currentWeapon player, 1];
// sets player's current weapon's current mag ammo to 1