Move IdleHunt function to campaign-global.lua

This commit is contained in:
Smittytron
2021-05-03 21:15:08 -05:00
committed by reaperrr
parent f1f9098109
commit 243dc965c0
41 changed files with 1 additions and 126 deletions

View File

@@ -184,13 +184,6 @@ SendSovietParadrop = function()
Trigger.AfterDelay(sovietParadropTicks, SendSovietParadrop)
end
IdleHunt = function(unit)
Trigger.OnIdle(unit, unit.Hunt)
Trigger.OnCapture(unit, function()
Trigger.ClearAll(unit)
end)
end
AircraftTargets = function(yak)
local targets = Utils.Where(Map.ActorsInWorld, function(a)
return (a.Owner == allies1 or a.Owner == allies2) and a.HasProperty("Health") and yak.CanTarget(a)