• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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