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

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