From b87ea6ddef6914a5558642eec8a161402d93a4a7 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Fri, 11 Jul 2014 23:47:02 +0200 Subject: [PATCH] Update fort-lonestar.lua --- mods/ra/maps/fort-lonestar/fort-lonestar.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mods/ra/maps/fort-lonestar/fort-lonestar.lua b/mods/ra/maps/fort-lonestar/fort-lonestar.lua index 2af00765bd..4055fc802b 100644 --- a/mods/ra/maps/fort-lonestar/fort-lonestar.lua +++ b/mods/ra/maps/fort-lonestar/fort-lonestar.lua @@ -6,7 +6,7 @@ LongRange = { "v2rl" } Boss = { "4tnk" } SovietEntryPoints = { Entry1, Entry2, Entry3, Entry4, Entry5, Entry6, Entry7, Entry8 } -PatrolWaypoints = { Patrol1, Patrol2, Patrol3, Patrol4 } +PatrolWaypoints = { Entry2, Entry4, Entry6, Entry8 } ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4 } OilDerricks = { OilDerrick1, OilDerrick2, OilDerrick3, OilDerrick4 } SpawnPoints = { Spawn1, Spawn2, Spawn3, Spawn4 } @@ -102,7 +102,13 @@ SendUnits = function(entryCell, unitTypes, interval, targetCell) local i = 0 Utils.Do(unitTypes, function(type) local a = Actor.Create(type, false, { Owner = soviets, Location = entryCell }) - Trigger.OnIdle(a, function(a) a.AttackMove(targetCell) end) + Trigger.OnIdle(a, function(a) + if a.Location ~= targetCell then + a.AttackMove(targetCell) + else + a.Hunt() + end + end) Trigger.AfterDelay(i * interval, function() a.IsInWorld = true end) i = i + 1 end) @@ -145,4 +151,4 @@ WorldLoaded = function() end) SendWave() -end \ No newline at end of file +end