• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help in one Moviment system

Status
Not open for further replies.
Yes, it's because it uses SetUnitAnimationByIndex function. Each model most likely has different animation indexes; if a Paladin model has its "Walk" animation = 1, it doesn't mean that every model will have walk animation index = 1. To check what animation ID is the corresponding to Walk, if it's a custom unit, open MDLX and convert your model to mdl. Then, open it via Notepad and scroll to Animations. Count from 0 to your animation. If your Walk animation is listed third, then its index is 2, because you begin counting from 0, not 1; so, the script in this case will go as follows:
JASS:
call SetUnitAnimationByIndex (udg_SCS_Units[i], 2)

If the model is of the Warcraft III engine, find it via an MPQ editor or Warcraft III Viewer (Edit -> Find).

References:
http://www.hiveworkshop.com/forums/tools.php?id=yzpnex
http://www.hiveworkshop.com/forums/tools.php?id=rgy4bk
http://www.hiveworkshop.com/forums/tools.php?id=d5w2va
 
Status
Not open for further replies.
Top