| 04-02-2003, 01:26 AM | #1 |
I want to make it so units can walk the path I set them to go, while attacking anything on the way... probally a easy question but ive been looking and cant find it... |
| 04-02-2003, 01:51 AM | #2 |
Well, there may be an easier way (or more thorough), but I get units to move along a path by creating small regions for them to go to. THEORETICALLY, they would automatically attack any 'enemies' along the way. Although you may need something to ensure they resume their march after defeating their enemies. Not sure. |
| 04-02-2003, 02:04 AM | #3 |
yeah I know how to get them to move to the places and everything, the only part im having trouble with is them to attack units on the way since right now they only attack a certain one from the "choose random unit from unit group" then move on im thinking about making lots of smaller regions and making it so when they get there have a trigger as "attack the attacking unit" but that would be a very painsteaking thing to do for what I need it for... hmm |
| 04-02-2003, 02:06 AM | #4 |
Use the "unit issue order unit to attack move to point" to get them to walk to your location and attack everything on the way. If you are using a straight path or dont care if they exactly follow your route use this and set a region at the very end. If you have a windy path or one they have to follow exactly, you will need to do what TucksMa suggested and create lots of regions along the path and then attack move to the first. When the units arrive there you will need to issue an attack move to the next region and so on. The units will resume moving after they have killed the enemies. Hope this helps, SheepOfDoom |
| 04-02-2003, 02:28 AM | #5 |
Guest | yup sheepofdoom gots the right idea man u should have know this its ez man. |
| 04-02-2003, 02:37 AM | #6 |
not everybody knows everything, thats why they ask. what seems ez to you, might be hard to somebody else. |
| 04-02-2003, 02:52 AM | #7 |
ok I got it, I used the patrol thing instead of just walking to it, this way they will attack anything on the path and still continue with there path until they reach the destination then just made another trigger once there... thanks guys |
| 04-02-2003, 02:55 AM | #8 |
If you use patrol and don't manage to catch them with the second trigger they will return to where they started. There is an order called attack move which causes them to move to that point and attack anything on the way. They will resume moving after attack, but when they get to the end point they will stop. This is different to Patrol which, when they get to the end, will order them to turn and return to the start point. If you can catch them with the second trigger you can give a new order and they wont return, but for future maps attack move is probably the best way of doing this. :) Hope this helps, SheepOfDoom |
| 04-02-2003, 03:45 AM | #9 |
if you use the AI - ignore guard positions on the unit being ordered to move it will forget where it came from and just halt at its destination |
