• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Find out Animation index

Status
Not open for further replies.
Level 4
Joined
Jun 13, 2010
Messages
114
I added the arrow key movement system to my map from the witcher.

Now to activate the cam and arrow key movement you need to make a trigger like this. Also to prevent that the character just slides without animation while walking.

Is there a faster way to find out the Animation index of units for walk than trying out every number?

hmjod349.png
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
Player skips a cinematic.

Actions:

Set tempunit = unit That you want the animations to check
Call SetUnitAnimationByIndex( udg_tempunit, udg_tempinteger)
Set tempinteger = tempinteger + 1
Debug message tempinteger

If tempinteger > 30 then set tempinteger = 0
 
Status
Not open for further replies.
Top