LocateSurvivor
Locate downed personnel
Usage: Used in 8 task(s)
Lua Implementation
-- Locate Survivor
function execute(params)
local searchArea = params.search_area
local survivors = {}
-- Scan area for survivor beacons
local contacts = this:getContactList()
for _, contact in ipairs(contacts) do
if contact:hasStateProperty("SurvivorBeacon") then
local distance = spatialUtil.distance(this:getLocation3D(), contact:getLocation3D())
if distance <= params.search_radius then
table.insert(survivors, contact)
end
end
end
params.locatedSurvivors = survivors
return #survivors > 0
end
Tasks Using This Action (8)
Loitering Munition Missions
Unmanned Aerial Vehicle (UAV) Operations (AIR DOMAIN)
Rescue Helicopter Insertion
Combat Search and Rescue (CSAR) (AIR DOMAIN)
Combat Zone Extraction
Combat Search and Rescue (CSAR) (AIR DOMAIN)
Search Pattern Execution
Combat Search and Rescue (CSAR) (AIR DOMAIN)
Escort and Suppression
Combat Search and Rescue (CSAR) (AIR DOMAIN)
Medical Evacuation (MEDEVAC)
Combat Search and Rescue (CSAR) (AIR DOMAIN)
Maintenance and Recovery
Logistics and Sustainment (LAND DOMAIN)
Hostage Rescue Operations
Subterranean/Tunnel Operations (LAND DOMAIN)