• 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.

Ability + animation ???

Status
Not open for further replies.
Level 3
Joined
Nov 4, 2006
Messages
32
Hello. I have any model what have Stand Hit animation. I need to use this animation when enemy unit misses attack to my unit. How can i do this?

For example, i have paladin. Enemy unit is archer or footman. My paladin have any evasion ability and when enemy attacks him and misses, i need for specific animation played on my paladin.

And i do not like trigger using, i want simple ability using in object editor. help me pleasse
__________________________________________________________________
First answer will be too simple i think. But i really need for returning attack, when enemy unit misses.

Exapmle: footmen misses attack, paladin contrattack him and deal any damage to footman. Can i do this without triggers? (really need contrattack with special unit animation played and only when enemy misses)

If i can't do this without triggers, how can i do with it?
 
Level 10
Joined
Jan 21, 2007
Messages
576
Well maybe every unit in the game that can attack could have a passive item ability (so its invis) that leaves a buff on the attacked unit for duration of .3 seconds thenn have a trigger like this:

  • Helping Teh Noobies
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Wait 0.10 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff TheBuff) Equal to True
        • Then - Actions
        • Else - Actions
          • Animation - Play (Attacked unit)'s Stand Hit animation
There are a couple of questions tha may arise with this:

When a unit attacks but misses/is evaded does it still get detected as an attack.
You might have to make the wait slight long.

I havent tested this idea at all it may not work at all, but i think its worth a try.
 
Status
Not open for further replies.
Top