I need the units controlled by a computer player to move to a specific location and attack all enemies on the way. The problem is that they just attack and don't use their abilities (like they did in Warcraft 3). Right now I issue an "attack" command but I've also tried "patrol" and "scan-move" but nothing works. What command do I have to use to make them cast their spells? Or do I need to initialize an AI (which I've also tried without success)?
The units I'm using are for the most part regular SC2 units with their usual abilities. However, the only abilities they cast are autocast abilities like Zealot - Charge or Medivac - Heal. I thought about ordering the units via trigger to use their abilities but that would probably cause a lot of lags because of the number of units on the map and the frequency at which they have to cast their spells. I also had a look at attack waves: they do work but the units don't cast their abilities often enough. What I'm going to do now is modify all the abilities so that they can be autocast and use validators to regulate when units should use them. This is quite a bit of work but nothing else seems to give the result I'm looking for.
Unless someone has another idea (which I would be grateful for), I'm going to mark this thread as solved.
Hi,
I need the units controlled by a computer player to move to a specific location and attack all enemies on the way. The problem is that they just attack and don't use their abilities (like they did in Warcraft 3). Right now I issue an "attack" command but I've also tried "patrol" and "scan-move" but nothing works. What command do I have to use to make them cast their spells? Or do I need to initialize an AI (which I've also tried without success)?
I hope you can help me.
@Kriegskaese: Go
I would just make a bit more of an advanced AI to order the units to cast the spell or what ever periodically....
if you dont mind my asking..... are they default game abilities that wont cast or are they of your own making?
If you swap the units your spawning out for another unit with an auto cast ability such as a medic....do they heal each other or not?
Medics healing ability is an auto cast ability .... generally set on auto cast enabled from the start.
Have you tried using the "attack wave" mechanics? The AI has to be functioning to know if it's working.
You can find some AI scripts either looking through the mpq or looking through some of the trigger library.
Tanks for the replies, they helped a lot.
The units I'm using are for the most part regular SC2 units with their usual abilities. However, the only abilities they cast are autocast abilities like Zealot - Charge or Medivac - Heal. I thought about ordering the units via trigger to use their abilities but that would probably cause a lot of lags because of the number of units on the map and the frequency at which they have to cast their spells. I also had a look at attack waves: they do work but the units don't cast their abilities often enough. What I'm going to do now is modify all the abilities so that they can be autocast and use validators to regulate when units should use them. This is quite a bit of work but nothing else seems to give the result I'm looking for.
Unless someone has another idea (which I would be grateful for), I'm going to mark this thread as solved.