View Single Post
  #6  
Old 05-25-2012, 06:54 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

For IsAirborne you can make your own

Simply check:
(actor as AiAircraft).getParameter(part.ParameterTypes.Z_Alt itudeAGL, -1)
(actor as AiAircraft).getParameter(part.ParameterTypes.Z_Vel ocityTAS, -1)

First is Height over Ground, Second is True Airspeed in m/sec.

So if for exampe
Code:
(actor as AiAircraft).getParameter(part.ParameterTypes.Z_AltitudeAGL, -1) <= 1.0
and
Code:
(actor as AiAircraft).getParameter(part.ParameterTypes.Z_VelocityTAS, -1) <= 1.0
you can get shure the plane is on the ground, but you should test the Values.

For checking if plane is Damaged you can use
Code:
(actor as AiAircraft).getParameter(part.ParameterTypes.M_Health, -1)
== 1 if not damaged < 1 if damaged

Last edited by FG28_Kodiak; 05-25-2012 at 07:25 AM.
Reply With Quote