Which game?
You are probably talking about Earth 2150 right? Or is it Earth 2160? Since you did mention a hero
Copy pasted from here:
https://steamcommunity.com/app/259280/discussions/0/648811126862126707/
Weapons running out of ammo
-Most weapons need to be resupplied when their ammo runs out. To do this, construct an Aerial Supply Depot (the name varies slightly by faction), build a few supply craft (Condor, Boyar or Mercury) and assign them to supply duty by selecting the craft and clicking on a supply depot. When a unit or building is about to run out of ammo, it will automatically request a resupply, and assigned supply craft will then land on the supply depot to load the ammo, then fly over to the depleted unit/building to resupply it.
When their ammo supply is depleted, aircraft will fly directly to the closest supply depot and land to reload.
In some maps there are also ammo crates that can be used to resupply ammo. Energy weapons don't need to be resupplied, as they will automatically regenerate ammo by themselves. I'm fairly certain that the ammo of normal weapons is free, but artillery and nukes are very expensive to reload. (Proper superweapon nukes regenerate free of charge after fired, but I think that the helicopter and ballistic variations cost to reload.)
If it's earth 2160 then drones were supposed to fly from ammo supply center to refill the ammo