TunnelSafe
Check if tunnel is safe to enter
Usage: Used in 8 task(s)
Lua Implementation
-- Tunnel Safe
function evaluate(params)
local tunnel = params.tunnel_location
if not tunnel then
return false
end
-- Check for threats, traps, flooding
local hasThreats = HostilesPresent{search_radius = 100}
local hasTraps = this:hasStateProperty("TrapsDetected")
local isFlooded = this:hasStateProperty("TunnelFlooded")
return not hasThreats and not hasTraps and not isFlooded
end
Tasks Using This Predicate (8)
Chokepoint Denial (Bridges, Tunnels)
Deep Strike/Interdiction (AIR DOMAIN)
Tunnel Entrance Detection
Subterranean/Tunnel Operations (LAND DOMAIN)
Underground Network Mapping
Subterranean/Tunnel Operations (LAND DOMAIN)
Entry and Clearance Operations
Subterranean/Tunnel Operations (LAND DOMAIN)
Booby Trap Detection and Neutralization
Subterranean/Tunnel Operations (LAND DOMAIN)
Tunnel Denial (Flooding, Demolition)
Subterranean/Tunnel Operations (LAND DOMAIN)
Hostage Rescue Operations
Subterranean/Tunnel Operations (LAND DOMAIN)
Underground Command Post Targeting
Subterranean/Tunnel Operations (LAND DOMAIN)