Could someone create a simple script that would automatically refill the ammo of a weapon, at a constant rate of about one per half second or so, up to 20 units (bullets)? The weapon will deplete the ammunition, "heating" the weapon, and cool/overheat upon reaching 0 units, though i can make that part with ease.
edit: (i guess i should have placed this in coding help)