OnGround
Check if aircraft is on ground
Usage: Used in 6 task(s)
Lua Implementation
-- On Ground
function evaluate(params)
local altitude = this:getLocation3D():getAlt()
local groundAlt = this:getGroundAltitude(
this:getLocation3D():getLat(),
this:getLocation3D():getLon()
)
return math.abs(altitude - groundAlt) < 5 -- Within 5 meters
end
Tasks Using This Predicate (6)
Offensive Counter-Air (OCA) Missions
Air Superiority (AIR DOMAIN)
Airfield Air Defense Suppression
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Runway Cratering
Airfield Attack (AIR DOMAIN)
Fuel/Ammunition Storage Targeting
Airfield Attack (AIR DOMAIN)
Air Traffic Control Destruction
Airfield Attack (AIR DOMAIN)
Airfield Defense Suppression
Airfield Attack (AIR DOMAIN)