WeaponReady
Check if weapon system is ready to fire
Usage: Used in 28 task(s)
Lua Implementation
-- Weapon Ready
function evaluate(params)
local weaponSystem = this:getSystem(params.weapon_system)
if weaponSystem then
local armed = weaponSystem:getAttribute("Armed")
local hasAmmo = weaponSystem:getAmmunitionCount() > 0
local notReloading = not weaponSystem:getAttribute("Reloading")
return armed and hasAmmo and notReloading
end
return false
end
Tasks Using This Predicate (28)
Quick Reaction Alert (QRA) Scrambles
Air Superiority (AIR DOMAIN)
Surface-to-Air Missile (SAM) Positioning
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)
Gun Runs and Strafing
Close Air Support (CAS) (AIR DOMAIN)
Rocket/Missile Strikes on Tactical Targets
Close Air Support (CAS) (AIR DOMAIN)
SAM Battery Destruction
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Anti-Radiation Missile Employment
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Decoy Operations
Suppression/Destruction of Enemy Air Defense (SEAD/DEAD) (AIR DOMAIN)
Weapons Cache Destruction
Precision Strike (AIR DOMAIN)
Artillery Spotting and Correction
Unmanned Aerial Vehicle (UAV) Operations (AIR DOMAIN)
Kinetic Interception (Guns, Missiles)
Counter-Drone Operations (C-UAS) (AIR DOMAIN)
Directed Energy Weapon Engagement
Counter-Drone Operations (C-UAS) (AIR DOMAIN)
Aircraft Destruction on Ground
Airfield Attack (AIR DOMAIN)
Engagement Area Development
Defensive Operations (LAND DOMAIN)
Target Acquisition and Handoff
Reconnaissance and Surveillance (LAND DOMAIN)
Fuel Delivery Under Fire
Logistics and Sustainment (LAND DOMAIN)
Artillery Preparation Fires
Combined Arms Assault (LAND DOMAIN)
Direct Fire Engagement
Armored Warfare (LAND DOMAIN)
Overwatch Positioning
Armored Warfare (LAND DOMAIN)
Fire Mission Execution
Artillery and Fires Operations (LAND DOMAIN)
Target Acquisition and Engagement
Artillery and Fires Operations (LAND DOMAIN)
Indirect Fire Support Coordination
Artillery and Fires Operations (LAND DOMAIN)
Barrage and Concentration Fires
Artillery and Fires Operations (LAND DOMAIN)
Suppression Fires
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)
Anti-Ship Missile Battery Deployment
Area Denial/Anti-Access (SURFACE DOMAIN)