Just a small question. Is it in anyway possible to get the attacked unit with the "Any unit starts attacking" event? I currently use it to stop the attack before it happens making it seem like it doesn't acquire the target before my own conditions are met (I have made that units can't target through others).
"Triggering unit" don't get the target of course, but do you know any alternatives?
Just a small question. Is it in anyway possible to get the attacked unit with the "Any unit starts attacking" event? I currently use it to stop the attack before it happens making it seem like it doesn't acquire the target before my own conditions are met (I have made that units can't target through others).
"Triggering unit" don't get the target of course, but do you know any alternatives?
Try the event "Unit issued order to attack" and use "target of triggering order" to get the target.
Thanks
I solved it without changing the event. Instead I just checked the last order's target (if it is an attack order).