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

Que unit animation by index

Status
Not open for further replies.

Sverkerman

Hosted Project: BoW
Level 17
Joined
Feb 28, 2010
Messages
1,325
Hello there and thank you for reading my thread!

After using a custom script such as: "call SetUnitAnimationByIndex(udg_TempUnit, 23" I would like to que a standing animation by index so that my unit doesn't look frozen after my animation. I cannot use Animation - Que (MyUnit)'s stand animation because my model has different standing animations for different animation-sets and I don't have a clue which names they have, just their ID.

Is there a custom script just like call SetUnitAnimationByIndex but more like call QueUnitAnimationByIndex?

+4 rep to helpers! ;)

Thank you have a great day.
 
Level 15
Joined
Mar 25, 2016
Messages
1,327
There is no such function. The only function with "queue" for unit animations are QueueUnitAnimation and QueueUnitAnimationBJ which are basically the same and both use strings.
You could use the Set function, when your first animation ends. If you know the length of this animation, you can use "SetUnitAnimationByIndex" this duration after the animation started for example.
 
Status
Not open for further replies.
Top