• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

"Stops Attacking"

Status
Not open for further replies.
Level 2
Joined
Jun 5, 2005
Messages
22
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:

Code:
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.
 
Status
Not open for further replies.
Top