CGF Knowledge Base Tactical Operations
Actions Predicates Libraries Behavior Trees Export
Home / Atomic Predicates / InEngagementZone

InEngagementZone

Check if target is in engagement zone

Usage: Used in 11 task(s)

Lua Implementation

-- In Engagement Zone
function evaluate(params)
    local target = params.target
    local engagementZone = params.engagement_zone

    if target and target:isValid() and engagementZone then
        local targetLoc = target:getLocation3D()
        return targetLoc:isInsidePolygon(engagementZone)
    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)