• 🏆 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!

[Solved] animations

Status
Not open for further replies.
Level 3
Joined
Jan 31, 2012
Messages
26
how do i force whith triggers when i put a command in chat like ... " T " it play always the same animation ... but the problem is there 3 attack animations
attack 1 attack 2 attack 3 how i can make it always be attack3?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
defskull, I would do it like this:
  • TEST
    • Events
      • Player - Player 1 (Red) Presses the Left Arrow key
      • Player - Player 1 (Red) Presses the Right Arrow key
    • Conditions
    • Actions
      • Custom script: if GetTriggerEventId() == EVENT_PLAYER_ARROW_LEFT_DOWN then
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • i Greater than 0
        • Then - Actions
          • Set i = (i - 1)
        • Else - Actions
      • Custom script: else
      • Set i = (i + 1)
      • Custom script: endif
      • Custom script: call SetUnitAnimationByIndex(udg_u, udg_i)
      • Game - Display to (All players) the text: (This is animation with index of + (String(i)))
http://www.hiveworkshop.com/forums/pastebin.php?id=u3yb00
 
Status
Not open for further replies.
Top