mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
AWACS can now detect helicopters
This commit is contained in:
parent
655b5bc6aa
commit
61e017fbe8
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user