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

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