This event fires when a unit starts attacking. Use "Attacking Unit" or "Triggering Unit" to get the attacker. Use "Triggering Player" to get the owner of the attacker.
I know how to get the attacker, but how do I get that is targeted by the attacker?
I know how to get the attacker, but how do I get that is targeted by the attacker?
Acquired Target
Event:
-Unit - Any Unit starts attacking with Any Weapon
Action:
-Unit - Order (Acquired Target) to ( Move targeting (Random point in (Entire map))) (Replace Existing Orders)
Result: if you place whatever unit that shoot, any target it shoot at will start to move anywhere. Acquired Target is what you are looking for.
I noticed it was greyed out, but it still works fine.
Unit Starts Attacking
This event fires when a unit starts attacking. Use "Attacking Unit" or "Triggering Unit" to get the attacker. Use "Triggering Player" to get the owner of the attacker.
I know how to get the attacker, but how do I get that is targeted by the attacker?
you might try "target unit of order" and set order to order of ability attack.
there seem to be no native for attacked unit.
@FunkyUserName: Go
Hmm... I'm not exactly sure on how to do it. Would you mind to provide the exact parameters?
i assume attack is always order with index 0, unless you have weapons that fire while moving. dunno how it behaves with order queue
@FunkyUserName: Go
Thanks so much!!!
Acquired Target
Event:
-Unit - Any Unit starts attacking with Any Weapon
Action:
-Unit - Order (Acquired Target) to ( Move targeting (Random point in (Entire map))) (Replace Existing Orders)
Result: if you place whatever unit that shoot, any target it shoot at will start to move anywhere. Acquired Target is what you are looking for.
I noticed it was greyed out, but it still works fine.
Working on projects: