DCS func inAir

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: inAir Added with: 1.2.0
Member Of: Object
Syntax: boolean Object.inAir(Class Self )
Description: Returns a boolean value if the object in question is in the air.

Function also works with Unit, Weapon, Static Object, Scenery Object, Airbase


Return Value: boolean
Return Example: true or false
Examples: The following command could be used
if Unit.getByName('player1'):inAir() == false then
 env.info("player is on the ground')
end
Related Functions: Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir
Notes: It is not likely that a static object, scenery object, or airbase could be in the air.