I'm making a map where one team attacks and the other team attacks too to destroy each others bases! but when ever the units are created and orderd to attack they don't attack the enemies that go pass them! Wats wrong with that?
Note: the computers are enemies not allyies and i orderd attack to a loaction
What triggers did you use? Like for example
Player7 and P8
Always
Enemy P7
Enemy P8
Perserve Trigger
Did you get that? P7 and P8 are comps on this example
Preserve trigger on an "attack" order messes it up so the units don't really attack as much, especially with hyper triggers on.
Computer untis won't attack very aggressively with using the Attack Order command. They will only attack if they get stopped. If you only have one "lane" you could use the Set Generic Command Target and Make Units Patrol Ai scripts, those work better from what I've seen. Someone told me once that computers will only attack when they've been ordered if they are in the location they were ordered to attack to. Not sure if that's true though.
It's true. It may have been me who told you that.
These things seem to work fine if you use Patrol. The problem is if they don't encounter an enemy then they just walk back and forth.

It was you Nozumo. I tried to use it and it didn't work. Patrol yields the same results as attack in my experience.
Your sure its the person ur tell the units to attack are enemies?
Or you do not have the trigger on Order Attack
Heres the trigger
Players
Player8(computer)
conditions
Bring at least 1 men to loaction1
Actions
Comment:attack base
Order all men owned by player8 at loaction1 to attack loaction2
preserve trigger