all units and buildings have a general priority of 20. you just have to raise the priority of the tanks and they will attack everything else as soon as the see it and attack the tank as soon one is there.
Saying you want the first unit they see to be the target is opposite of your requests tanks being first target
why is there a problem with priority if there are other units on the ramp? priority does exactly what you want to achieve. as soon as a unit sees the high priority unit it attacks this unit instead of all other units around. if there are two or more units with the same priority, it stays on the same target until its dead
trigger cooldown:
-global variable boolean cooldownxy false
your trigger:
-condition: cooldown == false
-actions: set cooldown = true
do stuff
wait x seconds or start another timed trigger
set cooldown = false
first off all you want to make clear for yourself, how you want them to behave
i guess only run to the second if the first one got killed
-you can add a "cooldown" to the attack tank trigger
-you can simply do it without trigger and give the tanks a high priority in data
-do After Exsisting Orders if the unit is attacking a tank already
all units and buildings have a general priority of 20. you just have to raise the priority of the tanks and they will attack everything else as soon as the see it and attack the tank as soon one is there.
Saying you want the first unit they see to be the target is opposite of your requests tanks being first target
why is there a problem with priority if there are other units on the ramp? priority does exactly what you want to achieve. as soon as a unit sees the high priority unit it attacks this unit instead of all other units around. if there are two or more units with the same priority, it stays on the same target until its dead
trigger cooldown:
-global variable boolean cooldownxy false
your trigger:
-condition: cooldown == false
-actions: set cooldown = true
do stuff
wait x seconds or start another timed trigger
set cooldown = false
first off all you want to make clear for yourself, how you want them to behave
i guess only run to the second if the first one got killed
-you can add a "cooldown" to the attack tank trigger
-you can simply do it without trigger and give the tanks a high priority in data
-do After Exsisting Orders if the unit is attacking a tank already
you recommend data