Add support for sending unarmed actors as part of the waves on Fort Lonestar

This commit is contained in:
abcdefg30
2015-12-18 22:59:04 +01:00
parent ba93269e73
commit 5dc91d533e

View File

@@ -31,6 +31,13 @@ Waves =
SendUnits = function(entryCell, unitTypes, targetCell)
Reinforcements.Reinforce(soviets, unitTypes, { entryCell }, 40, function(a)
if not a.HasProperty("AttackMove") then
Trigger.OnIdle(a, function(a)
a.Move(targetCell)
end)
return
end
Trigger.OnIdle(a, function(a)
if a.Location ~= targetCell then
a.AttackMove(targetCell)