• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

"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