ScanSector

Scan specified sector for contacts

Usage: Used in 30 task(s)

Lua Implementation

-- Scan Sector
function execute(params)
    local contacts = this:getContactList()
    local detectedTargets = {}

    for _, contact in ipairs(contacts) do
        if contact:isValid() and not contact:isDestroyed() then
            local bearing = spatialUtil.bearing(this:getLocation3D(), contact:getLocation3D())
            local range = spatialUtil.distance(this:getLocation3D(), contact:getLocation3D())

            if bearing >= params.start_bearing and bearing <= params.end_bearing
               and range <= params.max_range then
                table.insert(detectedTargets, contact)
            end
        end
    end

    params.detectedTargets = detectedTargets
    return true
end

Tasks Using This Action (30)

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)

Submarine Detection and Tracking

Anti-Submarine Warfare (ASW) (SURFACE DOMAIN)

Surface Threat Detection and Classification

Anti-Surface Warfare (ASuW) (SURFACE DOMAIN)

Mine Detection Operations

Mine Warfare Operations (SURFACE DOMAIN)