Warcraft III resources & community, 2003–2006 · archived

"Stops Attacking"

4 posts
#1

"Stops Attacking"

Is there a condition that checks if a unit stops attacking another unit? Thanks for any help.
#2
You can turn on a trigger which has the event "An Unit is issued an order" and of course the target is not the one you wanted to be attacked.

~Daelin
#3
Well, I'm trying to make it so the Rifleman Elite model uses his bayonette (or however you spell it) on ground units, and his rifle on air units. So far I have:

Attack
    Events
        Unit - A unit Is attacked
    Conditions
        ((Triggering unit) is A ground unit) Equal to True
        (Unit-type of (Attacking unit)) Equal to Dwarf Hunter
        (Custom value of (Attacking unit)) Equal to 0
    Actions
        Unit - Set the custom value of (Attacking unit) to 1
        Animation - Remove the one animation tag to (Attacking unit)
        Animation - Add the two animation tag to (Attacking unit)


But I can't figure out how to turn off his Attack Two animation (the bayonette one) when he is attacking an air unit.
#4
Just change the first condition so that you can check if the unit is flying. I don't think you need any custom values. Depending on the target it has, you can just change the tag. Is it simple enough?

~Daelin