Made resupply compatible with UAVs, optimized script