| 06-06-2004, 07:24 PM | #1 |
In my map I have computer controlled units with the defend ability. I want the units only to use defend when a player tells them to. Problem if, the AI has a mind of its own and automatically uses defend when under attack by archers. So, does anyone know how to prevent this behaviour by the computer? Perhaps I could write a blank AI script and get it to run that? |
| 06-06-2004, 07:36 PM | #2 |
As far as I am aware, these actions are inbred into the AI system and there is no real way to override them. In other words the main program handles that, not the AI files. |
| 06-07-2004, 02:22 AM | #3 |
Yes, I believe that, as long as the units are controlled by the computer, they will automatically defend when the right situation comes up. However, you might make a bit of a hack which detects when they try to use Defend, and if the player that ordered them is controlled by a computer, orders them to Stop instead. But that'll fire lots during a battle, and it might not work quite right. And it's a trigger question. If you're interested in pursuing it, I'll move this thread. |
| 06-07-2004, 05:08 AM | #4 |
Bleh, I think using triggers to stop this would be rather clunky. I'll do the opposite I guess; I'll trigger defend activation. Thanks for you help guys. |
