I have some units(crocodiles) that are scripted to attack if enemies (targets) enter a certain polygon.
now this units are set up to NOT autotarget, that is let's say you move a unit right next to them, they don't even react...
why...well it's a long story, just keep it that way.
So to make them react I did it through a script
now what happens is all the script works great, units (crocodiles) attack if the enemy unit enters the polygon, they retreat back inside the polygon if the enemy unit leaves it...
but somehow let's say out of 5 units(crocodiles) attacking... if a unit (1 of the 5) kills the entering unit, after it does, it's attack action somehow gets deleted...it's left not autotargetting enemies...while the other 4 (crocodiles) still keep attacking, as if the attack action was not deleted for them....but yes for the one that got the kill...
how can I avoid this attack nearest target action to not get deleted after they kill an enemy?
yes...I suck at explaining....I know...sorry...too tired
