![]() |
#6
|
|||
|
|||
![]()
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 Code:
(actor as AiAircraft).getParameter(part.ParameterTypes.Z_VelocityTAS, -1) <= 1.0 For checking if plane is Damaged you can use Code:
(actor as AiAircraft).getParameter(part.ParameterTypes.M_Health, -1) Last edited by FG28_Kodiak; 05-25-2012 at 07:25 AM. |
|
|