View Single Post
  #2  
Old 08-06-2011, 03:44 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

It's not possible, there is a get but not a set command. So you can get Informations about fuel and ammunition but at the moment it is not possible to change the values via script.
command for fuel status:
(actor as AiAircraft).getParameter(part.ParameterTypes.S_Fue lReserve, -1)
for amunition (0 = 1st gun, 1 = 2nd gun etc.)
(actor as AiAircraft).getParameter(part.ParameterTypes.S_Gun Reserve, 0)
for Bombs:
(actor as AiAircraft).getParameter(part.ParameterTypes.S_Bom bReserve, 0)

Last edited by FG28_Kodiak; 08-06-2011 at 03:50 PM.
Reply With Quote