I wasn't suggesting using the UCGO's for the missiles. I was talking about the "resource function" that was meant for gas stations or air stations, or whatever. but make Missile stations instead. additionally you could use Missile crates sitting on the ground or floating around in free fall to re-arm. Most fighters do not have the space to carry 1x1x1 cubes anyway.
here is an example chunk of code (kind of from Dan's Documentation, which fails to document this function that well.)
int SnagMissiles (double dEmptyHardpoints, double dReloadRadius= 1000)
{
if(dEmptyHardpoints<1)
{
strcpy(SendCargHudMessage(),"YOu are fully Armed!");
return 1;
}
double dStationreloaded = GetRessourceFromStationMineOrFactory("QJSEEKrld", dEmptyHardpoints, dReloadRadius);
if(dStationreloaded <0)
{
double dEatenMissiles = EatCloserCargoByType("Missile", dEmptyHardpoints);
if(dEatenMissiles <0)
{
strcpy(SendCargHudMessage(),"no Missiles found for reload");
return 1;
}
}
// refill
Rearm(dEatenMissiles);
sprintf(SendCargHudMessage(),"%.2f missiles loaded",dEatenMissiles );}