AirThreatDetected
Check if air threat has been detected
Usage: Used in 11 task(s)
Lua Implementation
-- Air Threat Detected
function evaluate(params)
local contacts = this:getContactList()
for _, contact in ipairs(contacts) do
if contact:isValid() and IsHostile{target = contact} then
local entityType = contact:getEntityType()
if entityType[1] == 1 then -- Air platform
return true
end
end
end
return false
end
Tasks Using This Predicate (11)
Integrated Air Defense System Deployment
Air Denial Operations (AIR DOMAIN)
Surface-to-Air Missile (SAM) Positioning
Air Denial Operations (AIR DOMAIN)
Short-Range Air Defense (SHORAD) Coverage
Air Denial Operations (AIR DOMAIN)
Medium/Long-Range SAM Umbrella Creation
Air Denial Operations (AIR DOMAIN)
Air Defense Artillery Positioning
Air Denial Operations (AIR DOMAIN)
SAM Battery Destruction
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Electronic Attack on Air Defense Systems
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Airfield Air Defense Suppression
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Decoy Operations
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Wild Weasel Missions
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Airfield Defense Suppression
Airfield Attack (AIR DOMAIN)