AWACS can now detect helicopters

This commit is contained in:
Ambroise Garel 2025-09-16 19:50:56 +02:00
parent 655b5bc6aa
commit 61e017fbe8

View File

@ -43,6 +43,15 @@ do
end end
end end
end end
detectedGroups = coalition.getGroups(TUM.settings.getEnemyCoalition(), Group.Category.HELICOPTER)
for _,g in pairs(detectedGroups) do
local units = g:getUnits()
for _,u in pairs(units) do
if u:inAir() then
table.insert(detectedAircraft, u)
end
end
end
-- No aircraft on picture -- No aircraft on picture
if #detectedAircraft == 0 then if #detectedAircraft == 0 then