| 08-01-2007, 05:35 AM | #1 |
I have a trigger in my map that creates a number of units at a certain point, and then orders them to Attack-Move to a random spot on the map. Problem is, after they reach their destination, they turn around and go right back to where they started, which I don't want. It may be relevent to add that the spawned units are owned by a Computer slot, and that they have the Wander ability. Help would be appreciated. I would post trigger code, but I'm not sure how to on these forums. EDIT: Problem solved, thanks Ammorth for the solution (Ignore Unit Guard Positions. (either for the unit, or for the player will work)) and Pyrogasm for helping. |
| 08-01-2007, 05:44 AM | #2 |
I have the same question. I've wondered why they do that too. |
| 08-01-2007, 06:19 AM | #3 | |
Quote:
How about ordering them to Hold Position when they reach their target? |
| 08-01-2007, 08:08 AM | #5 |
Did you disable the AI? I think that's your problem; the AI is ordering the units back. We'll have to get Moyack in here to explain how to create an AI that does nothing, as I know he's explained it before. Or you can try a search for "Disable AI" and all of its variants. |
| 08-01-2007, 08:11 AM | #6 |
Ignore Unit Guard Positions. (either for the unit, or for the player will work) |
| 08-01-2007, 08:17 AM | #7 |
Isn't that only for creeps? |
| 08-01-2007, 08:54 AM | #8 | |
Quote:
|
| 08-01-2007, 09:20 AM | #9 |
It will still auto-use abilities and maybe do some things with guard positions if you've managed to set things up correctly. A disabled AI will do absolutely nothing. |
| 08-01-2007, 09:39 AM | #10 | |
Quote:
EDIT: Just tried Ammorth's suggestion, and it seems to work. Thanks all! |
| 08-01-2007, 09:47 AM | #11 |
Here is the thread I was thinking of. Look for Moyack's replies. |
