Animation ID

skyblader

You're living only because it's illegal killing.
Reaction score
159
[SOLVED]​
I've seen this problem before, playing unit's animation and it doesn't work because the animation ID is not the same or something. Was just wondering how to play the unit's animation ID anyway? It's basically a downloaded model which has a walk animation, I tried to play it's "walk" animation but it didn't work.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Okay I read the guide.... Now, I used this but it doesn't work ):

Trigger:
  • GetAnimationID
    • Events
      • Player - Player 1 (Red) types a chat message containing - as An exact match
    • Conditions
    • Actions
      • Set AnimationID = (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string))))))
      • Custom script: call SetUnitAnimationByIndex(gg_unit_h003_0002,udg_AnimationID)


I typed -1, -2, -3, -4, -5, -6, and so on but neither of them worked.

Edit: Just realised the problem. as An exact match Silly me. :eek:
Edit: Still not working.

I inserted a game text message display, and the value was right.
Trigger:
  • GetAnimationID
    • Events
      • Player - Player 1 (Red) types a chat message containing - as A substring
    • Conditions
    • Actions
      • Set AnimationID = (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string))))))
      • Game - Display to (All players) the text: (String(AnimationID))
      • Custom script: call SetUnitAnimationByIndex(gg_unit_h003_0002,udg_AnimationID)


Edit: Apparently, it was something wrong with the generated unit, I set it into a variable and used the variable instead and it worked.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top