How do you make an attack move on the closest unit within a region automaticly and have it constantly searching for more units to attack within a region? Of course attack enemy units that is.
Issue Order trigger. Not in front of SC2 but it should be under unit if I am correct. Should have Issue (order being the command attack, move etc) ((actual unit inside the map, which you choose from the 5 or 6 options up top, one should be value or something, it will show a list of placed units if youre choosing from an already placed unit) in region( or point, whichever you choose, and you will have to place a region or point where you'd like it's attack point to be at). Hope this helps.
ya but it doesn't constantly try to attack a different unit after it kills its intial unit i've tried to put the action on a loop but it doesn't do it....
Assume UNIT A = The unit that tries to attack everything.
REGION A = The region that UNIT A is defending.
Create a new trigger when any unit enters the REGION A. Then make a new event and order UNIT A to attack-move to position of entering unit (Aka UNIT B).
let me clarify the trigger i need. all your suggest r good but will not work with my map because of the following reasons.
The attacker = Unit A
Units that entered the region = Units B
I fire this unit attack trigger after the units B enter the region say 3 mins. I do not want it to auto attack a unit B when it enters the region because Unit A will not be there when Unit B enters. Therefore some possiblites would be to make a trigger that sets all units that enter the region into a unit group varible then have another trigger which fires after a timer expires and spawn Unit A and have the action on loop to attack all units in the unit group. But that hasn't worked out too well.
How do you make an attack move on the closest unit within a region automaticly and have it constantly searching for more units to attack within a region? Of course attack enemy units that is.
Thanks
@gamfvr: Go
Issue Order trigger. Not in front of SC2 but it should be under unit if I am correct. Should have Issue (order being the command attack, move etc) ((actual unit inside the map, which you choose from the 5 or 6 options up top, one should be value or something, it will show a list of placed units if youre choosing from an already placed unit) in region( or point, whichever you choose, and you will have to place a region or point where you'd like it's attack point to be at). Hope this helps.
ya but it doesn't constantly try to attack a different unit after it kills its intial unit i've tried to put the action on a loop but it doesn't do it....
Assume UNIT A = The unit that tries to attack everything.
REGION A = The region that UNIT A is defending.
Create a new trigger when any unit enters the REGION A. Then make a new event and order UNIT A to attack-move to position of entering unit (Aka UNIT B).
On the spot i can think of one sure way.
Event:
Any unit enters X Region
Condition:
triggering unit is in units in region with alliance enemy to player X = true
Action:
Issue attack order on that unit
turn current trigger off
wait for condition: number of units in region = 0
turn current trigger on
Event: Any unit dies
Condition: triggering unit is in units in region with alliance enemy to player X = true
Action:
If then else: If: number of units in X region >= 1
Then: issue attack order on random unit in that region
@RageQit: Go
let me clarify the trigger i need. all your suggest r good but will not work with my map because of the following reasons.
The attacker = Unit A
Units that entered the region = Units B
I fire this unit attack trigger after the units B enter the region say 3 mins. I do not want it to auto attack a unit B when it enters the region because Unit A will not be there when Unit B enters. Therefore some possiblites would be to make a trigger that sets all units that enter the region into a unit group varible then have another trigger which fires after a timer expires and spawn Unit A and have the action on loop to attack all units in the unit group. But that hasn't worked out too well.
@gamfvr: Go
Send me a pm, i'll code it.