Hi,
I suppose you know there is an ammo throttle in the editor for every unit when you insert or edit a unit, you do not have to write anything to the init field.
After you can change it ingame with removeMagazine and addMagazine commands, and here are checks for the ammount of ammo:
1.
?(MyGuy ammo "M16" == 0):aP sidechat "Reload damn it!"
2.
someAmmo unitName
unitName is the name of the unit to check
Returns :
TorF
true indicates the unit has ammo
false indicates the unit has no ammo remaining.
You can find details at off or unoff command reference