Making AI Units attack other AI Units If They Are Nearby.
Moderator: Cheaters
-
- Newcomer
- Posts: 9
- Joined: May 19th, 2009, 8:29 pm
Making AI Units attack other AI Units If They Are Nearby.
I am currently having trouble figuring out how to make AI units like footman who walk to a destination i call path a in regions attack the enemie who also walk to path a if they are not standing still.
-
- Newcomer
- Posts: 9
- Joined: May 19th, 2009, 8:29 pm
Re: Making AI Units attack other AI Units If They Are Nearby.
what i mean is i have a trigger that tells creeps to move to a certain region for the allys and the enemies and i want them to attack each other if they meet up with each other before or after they reach that destination.
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Making AI Units attack other AI Units If They Are Nearby.
Just make the creeps attack-move to the region instead of just move.
The action your looking for is "Unit - Issue order targeting a point"
Code: Select all
Unit Group - Pick every unit in (Units in Region 000 <gen> owned by Neutral Hostile) and do (Unit - Order (Picked unit) to Attack-Move To (Center of (Playable map area)))

-
- Senior Member
- Posts: 152
- Joined: October 5th, 2009, 7:31 am
- Title: Taiwan, Singapore
- Location: Here!? XD
Re: Making AI Units attack other AI Units If They Are Nearby.
knightcyan wrote:I am currently having trouble figuring out how to make AI units like footman who walk to a destination i call path a in regions attack the enemie who also walk to path a if they are not standing still.
Don't double post, use the edit button.knightcyan wrote:what i mean is i have a trigger that tells creeps to move to a certain region for the allys and the enemies and i want them to attack each other if they meet up with each other before or after they reach that destination.
kthx.