• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Animation Problem :S

Status
Not open for further replies.
Level 2
Joined
Apr 16, 2008
Messages
7
Hello =)

(WARNING BAD BAD ENGLISH xD)

my model have 2 atacks animation one is for sword (attack 1) and 1 is for bow (attack 2) i need this:

When my model pick up a bow use the animation for bow and when pick up a sword use the first animation.
How i can do this??

(END OF BAD BAD ENGLISH xD)
 
Level 8
Joined
Aug 23, 2007
Messages
491
You'd have to do it with triggers. It would be like...
A hero(or specific hero) picks up (sword or bow) disable attack 1 and enable attack 2. If you dont know anything about triggers I'm sure someone here will post the trigger for you.
 
You'd have to do it with triggers. It would be like...
A hero(or specific hero) picks up (sword or bow) disable attack 1 and enable attack 2. If you dont know anything about triggers I'm sure someone here will post the trigger for you.
Yes, Ok, Warcraft III does involve magic, but hell, this can never be done.
I thought the orbs could work ("Melee Damage Fire Bonus" ability), but now I tested it and i didn't get a result.
You can trigger it though:
  • Attack1
  • Events
    • Unit - A unit acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Bow
  • Actions
    • Unit - Set custom value of (Triggering unit) to 1
  • Attack2
  • Events
    • Unit - A unit is attacked
  • Conditions
    • (Unit-type of (Attacking unit)) Equal to X
    • (Custom value of (Attacking unit)) Equal to 1
  • Actions
    • Animation - Play (Attacking unit)'s Attack - 2 animation
  • Attack3
  • Events
    • Unit - A unit loses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Bow
  • Actions
    • Unit - Set the custom value of (Triggering unit) to 0
 
Level 8
Joined
Aug 11, 2007
Messages
272
Steam tanks use 2 animations because one is attacking ground and the other one is attacking air :|

as for your question, the only way is to do like this
==Unit aquires an item.
==Item = Bow
==Enable attack 2 (bowish)
==Disable attack 1 (swordish)

==Unit aquires an item.
==Item = sword
==enable attack 1 (swordish)
==disable attack 2 (bowish)

cant say for sure as i have not started my WE
 
Status
Not open for further replies.
Top