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

@@ -23,14 +23,6 @@ else
TanyaType = "e7.noautotarget"
end
IdleHunt = function(actor)
Trigger.OnIdle(actor, function(a)
if a.IsInWorld then
a.Hunt()
end
end)
end
ProduceUnits = function(factory, count)
if ussr.IsProducing("e1") then
Trigger.AfterDelay(DateTime.Seconds(5), function() ProduceUnits(factory, count) end)