I have been working on a map for a few days now, but for the life of me, can't figure out how to make this trigger achieve the desired result. The gist of what I would like to do is as follows:
Spawn a few squads of 5 units in any of four pre-set random locations. (These units are controlled by the AI)
-That's working fine
Here's where I have the problem:
I want to make these newly spawned units attack the nearest unit controlled by the actual players.
(IE. Player 1 has a unit 20 feet away from an enemy unit, while player 2 has a unit 30 feet away from it, the enemy attacks player 1's unit.)
I just can't figure out how to do this. Any help would be appreciated.
I apologize if I didn't make any sense, please have patience with me. I'm quite tired right now, Haha. I would be more then happy to try and clear up any confusion should the need arise.
I also apologize if this post is in the wrong location, I'm relatively new to posting here.
0
Dear lord, I feel dumb now. Haha
I can't thank you enough for that, that's exactly the behavior I was looking for. Now to implement it into my map... >:)
Once again, thanks!
0
I have been working on a map for a few days now, but for the life of me, can't figure out how to make this trigger achieve the desired result. The gist of what I would like to do is as follows:
Spawn a few squads of 5 units in any of four pre-set random locations. (These units are controlled by the AI) -That's working fine
Here's where I have the problem:
I want to make these newly spawned units attack the nearest unit controlled by the actual players. (IE. Player 1 has a unit 20 feet away from an enemy unit, while player 2 has a unit 30 feet away from it, the enemy attacks player 1's unit.)
I just can't figure out how to do this. Any help would be appreciated.
I apologize if I didn't make any sense, please have patience with me. I'm quite tired right now, Haha. I would be more then happy to try and clear up any confusion should the need arise.
I also apologize if this post is in the wrong location, I'm relatively new to posting here.
Thanks in advance -Phenix