Merge pull request #10206 from abcdefg30/survival02
Let spawned soviet vehicles attack move on Survival02
This commit is contained in:
@@ -135,7 +135,8 @@ end
|
|||||||
SpawnSovietVehicle = function(spawnpoints, rallypoints)
|
SpawnSovietVehicle = function(spawnpoints, rallypoints)
|
||||||
local route = Utils.RandomInteger(1, #spawnpoints + 1)
|
local route = Utils.RandomInteger(1, #spawnpoints + 1)
|
||||||
local rally = Utils.RandomInteger(1, #rallypoints + 1)
|
local rally = Utils.RandomInteger(1, #rallypoints + 1)
|
||||||
local unit = Reinforcements.Reinforce(soviets, { Utils.Random(SovietVehicles) }, { spawnpoints[route].Location, rallypoints[rally].Location })[1]
|
local unit = Reinforcements.Reinforce(soviets, { Utils.Random(SovietVehicles) }, { spawnpoints[route].Location })[1]
|
||||||
|
unit.AttackMove(rallypoints[rally].Location)
|
||||||
IdleHunt(unit)
|
IdleHunt(unit)
|
||||||
|
|
||||||
Trigger.OnCapture(unit, function()
|
Trigger.OnCapture(unit, function()
|
||||||
|
|||||||
Reference in New Issue
Block a user