Yeah can't set them unless a ground unit. this is about as close as you can get
I gave up lol maybe to drunk.
Code:
/* // AiAirGroup airGroup = aircraft.AirGroup();
// if(aircraft == airGroup.GetItems()[0])
{
double speed = aircraft.getParameter(part.ParameterTypes.Z_VelocityTAS, -1);
double sFuel = aircraft.getParameter(part.ParameterTypes.S_FuelReserve, -1); // kgs
double iFuel = aircraft.getParameter(part.ParameterTypes.I_FuelReserve, -1); // kgs
int ammo = 0;
for (int i = 0; i < 9; i++)
{
ammo += (int)(aircraft.getParameter(part.ParameterTypes.S_GunReserve, i)); // qty
sFuel += (int)(aircraft.getParameter(part.ParameterTypes.S_FuelReserve, i)); // qty
iFuel += (int)(aircraft.getParameter(part.ParameterTypes.I_FuelReserve, i)); // qty
};
if (ammo == 0 || sFuel < 20)
sFuel += 40;
iFuel += 40;
ammo += 1;
}
*/