IsDetected

Check if target has been detected

Usage: Used in 27 task(s)

Lua Implementation

-- Is Detected
function evaluate(params)
    local target = params.target

    if not target then
        return false
    end

    local contacts = this:getContactList()
    for _, contact in ipairs(contacts) do
        if contact:getObjectId() == target:getObjectId() then
            return true
        end
    end

    return false
end

Tasks Using This Predicate (27)

Target Marking and Designation

Close Air Support (CAS) (AIR DOMAIN)

Leadership Decapitation Strikes

Precision Strike (AIR DOMAIN)

Supply Line Interdiction

Deep Strike/Interdiction (AIR DOMAIN)

Railway Yard Destruction

Deep Strike/Interdiction (AIR DOMAIN)

Staging Area Disruption

Deep Strike/Interdiction (AIR DOMAIN)

Persistent Surveillance Orbits

Intelligence, Surveillance, Reconnaissance (ISR) (AIR DOMAIN)

Target Identification and Tracking

Intelligence, Surveillance, Reconnaissance (ISR) (AIR DOMAIN)

Movement Tracking

Intelligence, Surveillance, Reconnaissance (ISR) (AIR DOMAIN)

Reconnaissance Drone Deployment

Unmanned Aerial Vehicle (UAV) Operations (AIR DOMAIN)

Loitering Munition Missions

Unmanned Aerial Vehicle (UAV) Operations (AIR DOMAIN)

Drone Detection and Tracking

Counter-Drone Operations (C-UAS) (AIR DOMAIN)

Electronic Jamming of Control Links

Counter-Drone Operations (C-UAS) (AIR DOMAIN)

GPS Spoofing and Disruption

Counter-Drone Operations (C-UAS) (AIR DOMAIN)

Communications Disruption

Electronic Warfare (Airborne) (AIR DOMAIN)

Search Pattern Execution

Combat Search and Rescue (CSAR) (AIR DOMAIN)

Route Reconnaissance

Reconnaissance and Surveillance (LAND DOMAIN)

Area Reconnaissance

Reconnaissance and Surveillance (LAND DOMAIN)

Zone Reconnaissance

Reconnaissance and Surveillance (LAND DOMAIN)

Surveillance Post Establishment

Reconnaissance and Surveillance (LAND DOMAIN)

Patrol Operations (Mounted/Dismounted)

Reconnaissance and Surveillance (LAND DOMAIN)

Target Acquisition and Handoff

Reconnaissance and Surveillance (LAND DOMAIN)

Tunnel Entrance Detection

Subterranean/Tunnel Operations (LAND DOMAIN)

Booby Trap Detection and Neutralization

Subterranean/Tunnel Operations (LAND DOMAIN)

Target Acquisition and Engagement

Artillery and Fires Operations (LAND DOMAIN)

Interdiction Fires

Artillery and Fires Operations (LAND DOMAIN)

Harassment and Interdiction (H&I)

Artillery and Fires Operations (LAND DOMAIN)

Surface Target Detection and Tracking

Anti-Ship Warfare (SURFACE DOMAIN)