Hey guys, i am having big trouble getting my spawn/attack move system done. It intends to spawn units periodically and tells them to attack a random unit from a random player in Team 1. The spawned units do attack the target but if the target dies and there is no other target in range it will just stop walking
can you help me fix that? i posted the same thing in world editor help zone but thought this forum fits my problem better.
-
Variable
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set Force2 = (All allies of Player 12 (Brown))
-
Set Force1 = (All allies of Player 1 (Red))
-
-
-
TownTier1UnitSpawn
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set AnyPlayerForce1 = (Random player from Force1)
-
Unit - Create 1 Town Slave for Player 11 (Dark Green) at (Center of SpawnLeft <gen>) facing Default building facing degrees
-
AI - Ignore (Last created unit)'s guard position
-
Unit - Order (Last created unit) to Attack-Move To (Position of (Random unit from (Units owned by AnyPlayerForce1)))
-
Set AnyPlayerForce1 = (Random player from Force1)
-
Unit - Create 1 Town Slave for Player 11 (Dark Green) at (Center of SpawnRight <gen>) facing Default building facing degrees
-
AI - Ignore (Last created unit)'s guard position
-
Unit - Order (Last created unit) to Attack-Move To (Position of (Random unit from (Units owned by AnyPlayerForce1)))
-
-