Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
This only works once the unit quires the order...a unit can continue on fighting without any additional attack orders...I need some way of checking if a unit is currently attacking.
you can try comparing the current order string to "attack" if you just mean autoattacking
Untitled Trigger 001
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current order of (Picked unit)) Equal to (Order(attack))
Then - Actions
Else - Actions
but by "in combat" if you mean like in MMO's where certain abilities cannot be used "in combat" then you would have to check if any other units are attacking your picked unit. Or if the other units do more than just attack, you would have to put the unit on an "aggro list" or some unit group variable and remove it after like 10 seconds of not taking damage. Thats how the blink dagger works in DotA.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.