[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,243
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