Ceeeb
This command does not add magazines to vehicle weapons that normally start with more than one magazine. It can however, remove these magazines.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. Note that the ammo will be added only to local turrets. To check locality of turret use turretLocal.
vehicleName setVehicleAmmo value
Parameters:
Returns: Nothing
player setVehicleAmmo 0;
_vehicle setVehicleAmmo 1;
setVehicleAmmoDef · ammo · setAmmo · setAmmoCargo · turretLocal
This command does not add magazines to vehicle weapons that normally start with more than one magazine. It can however, remove these magazines.
A2:OA v1.59 - Magazines of vehicle turrets are also refilled by this command.
This command does not operate compared to a full state defined by the vehicle type, but rather relative to a vehicle's current magazine loadout. To get the former behaviour use setVehicleAmmoDef, which utilizes the vehicles default magazine loadout (i.e. its CfgVehicles magazines[] values).