|
|
#1 |
|
User
Join Date: May 2004
Posts: 62
|
Ok my map is an AOS style map and I'm having a minor bug. Whenever a hero attacks an enemy hero, and they are surrounded by enemy non-hero units, all these units stop whatever they were doing (attacking other non-hero units for example) and move to attack that hero.
It would be ideal if the units kept on attacking what they were attacking, and not stopping to attack a hero just because they attacked their allied hero. How does one go about preventing this? |
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
User
Respected User
Join Date: Oct 2002
Posts: 1,296
|
Unfortunately Warcraft has quite a lot of unit AI behaviours that cannot be easily switched off.
In your case it might help to capture all orders given to the units so you can lookup their current target. You could then catch the attack order of the hero and then for all orders immediately after that one reissue the order they had before that. |
|
|
|
|
#3 | |
|
User
Join Date: May 2004
Posts: 62
|
Quote:
Granted that would work - I was looking for something a little less complicated than that though - its not necessarily a huge problem - just kind of annoying. I was wondering if it had anything to do with priorities or unit levels (like what determines what a unit attacks first given an attack move-to command). Some unit value that could be tweaked in the object editor. |
|
|
|
|
|
#4 |
|
Free Software Terrorist
Technical Director
|
I had plenty of these things, I found that making every single unit have 0 in the priority field, helps
__________________ |
|
|
|
|
#5 |
|
User
Join Date: May 2004
Posts: 62
|
Thanks I will try that.
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |