Animation

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
You can view all animations in-game and find their index with this:

  • Untitled Trigger 067
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set u = Paladin 0006 <gen>
      • Set i = 0
      • // If a unit has more than 20 animations, increase the 20
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Custom script: call SetUnitAnimationByIndex(udg_u, udg_i)
          • Floating Text - Create floating text that reads (String(i)) above u with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Set i = (i + 1)
          • Wait 2.00 seconds
i is integer variable
u is unit variable
 
Status
Not open for further replies.
Top