- Joined
- Aug 1, 2007
- Messages
- 535
I need some sort of AI script, or trigger, that will make computer units attack the closest enemies. Anyone have any idea how to do this?
isnt aggro the same thing?
computer players automatically attack the nearest enemy.
Not always. Sometimes a unit locks on an enemy unit and he tries to kill it first. But if that enemy unit is behind the line of other units, the attacker tries to circle around those units to reach his target. By the time he circles around them he gets hits from those units and dies before he reaches his target (or even he got in range if he is a ranged unit). It is annoying because if he could understand that he can never reach his target and then at least he would cancel that target and try to aim a closer enemy unit. Hence he would be able to pawn some enemy units before he dies.
Must say I never noticed that happening, I normally use a computer force or nuetral hostile.
Only time I've seen this happen was with actual players and poor micro.
Well, while creating custom units and experimenting different combinations you may sometimes face such situations. Maybe giving melee skills to ranged units or vice-versa, modfiying priority value, etc. The World editor has many data fields. And there are lots of combinations you can experiment with. Of course in some cases units behave in unpredictable ways. When you add strange terrainings of map and odd ideas the creator has in his mind into this, of course weirdness may happen.