View Single Post
  #3  
Old 04-21-2012, 01:37 PM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

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;

               }

       */
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
Reply With Quote