• 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.

Unit playing animation at creation

Status
Not open for further replies.
Level 12
Joined
Mar 13, 2012
Messages
1,121
Hey again guys,

when I create a unit it plays an animation once. But I dont want that. How can I edit the model to not play that animation at creation? Or is it possible with only triggers?




Side question:
Is there an easy way to slow down animations of a model in model editor? The problem is I need the animation very slow and SetUnitTimeScale and SetUnitTimeScalePercent are weird for very small values.
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
Unit enters map ->
call SetUnitAnimationByIndex(*unit*, *integer*)

Hm ok and what to change in the model itself that the first animation is another one?

How does SetUnitTimeScale work weirdly? For that one, 1 = 100%, 0.01 = 1%.

From my observations 0.01 is about 0.1%. For values below 0.5 or so it seems to scale strange..


Thanks so far!
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
At creation, it plays the "birth" animation.
You can remove it or reduce it to a minimal time.

When I remove it, it plays the stand animation. But playing the birth animation is a viable solution. The next problem is that when the birth animation is finished, the model vanishes (I cant click it anymore). This doesnt happen after the stand animation. What to adjust that the model doesnt vanish after birth animation?

Best way to slow animations down would be to increase the time between the keyframes.
Im gonna try, but you know, models are my weakness^^



e: wow thats crazy. When I set animation speed to e.g. 0.01 the animation runs much faster when I dont look at it and very slow when I look at it Oo
 
Last edited:
Level 12
Joined
Mar 13, 2012
Messages
1,121
Ok one more question to this topic and then it should be finished.

At creation, it plays the "birth" animation.

I edited the model to have a birth animation but it still plays the stand animation at creation. What am I doing wrong?
e: seems that if you create a unit by triggers it just doesnt play its birth animation -.-
 
Last edited:
Status
Not open for further replies.
Top