TargetInEnvelope
Check if target is in weapon engagement envelope
Usage: Used in 9 task(s)
Lua Implementation
-- Target In Envelope
function evaluate(params)
local target = params.target
local weaponSystem = this:getSystem(params.weapon_system)
if not target or not target:isValid() or not weaponSystem then
return false
end
local distance = spatialUtil.distance(this:getLocation3D(), target:getLocation3D())
local minRange = weaponSystem:getMinRange()
local maxRange = weaponSystem:getMaxRange()
return distance >= minRange and distance <= maxRange
end
Tasks Using This Predicate (9)
Fighter Sweep Operations
Air Superiority (AIR DOMAIN)
Air-to-Air Combat Engagement
Air Superiority (AIR DOMAIN)
Combat Air Patrol (CAP) Establishment
Air Superiority (AIR DOMAIN)
Kinetic Interception (Guns, Missiles)
Counter-Drone Operations (C-UAS) (AIR DOMAIN)
Interceptor Drone Deployment
Counter-Drone Operations (C-UAS) (AIR DOMAIN)
Combat Zone Extraction
Combat Search and Rescue (CSAR) (AIR DOMAIN)
Barrier Combat Air Patrol (BARCAP)
Counter-Air Patrol (AIR DOMAIN)
Target Combat Air Patrol (TARCAP)
Counter-Air Patrol (AIR DOMAIN)
Intercept of Incoming Threats
Counter-Air Patrol (AIR DOMAIN)