For a unit to get the command you have to add
Code: Select all
[customParams] {
canAreaAttack=1;
}
Moderator: Moderators
Code: Select all
[customParams] {
canAreaAttack=1;
}
[Krogoth86] wrote:It still has a problem though. When you go ahead and make your area attack circle and then the mechanism chooses a point which is out of range (what can happen as you don't see the max range when drawing the circle) the unit doesn't try to close in but just holds its position with an attack order it can't complete and does nothing...
At least that's a situation I had - didn't try to reproduce it yet...
You know, I could just tell them to move into range first.Argh wrote:Hmm. Well, it could get the max ranges of every weapon of every Unit being given the order, and not allow the user to issue a command past the max range of the farthest Unit from the target.
Or, the quick-and-dirty way is to just re-randomize the attack orders faster, and if any Units cannot hit any of the circle at all, then drop them.