• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[General] [Reforged] Transition from Birth to Stand animation easily

Status
Not open for further replies.
Level 12
Joined
May 16, 2020
Messages
663
Hi guys,

I have a “nice to solve” problem for which I didn’t find a solution yet.

When forcing an animation on a unit, for example birth, the unit “freezes” as soon as the birth animation ends (it gets unfrozen when you give it an order though).

You can prevent the freeze by resetting the unit’s animation after the birth animation ends, but that would require quite a lot of triggers I assume (as you would need to keep track when a unit got forced to play an animation, wait precisely the animation’s duration, and then reset this particular unit’s animation).

Thus: Is there an easy way to reset the animation after e.g. birth and prevent the freezing?
 
This is not a problem unique to birth.

All animations freeze at the end when forced by triggers. I have not heard of any workaround beyond using a delay and then resetting the animation.

I will say that it is not that annoying in wurst specifically.
upload_2020-10-3_22-53-45.png


It is a pain in gui and jass tho. vJass has callbacks you might use cleverly, and I dont know about lua

edit: you might make it work GUI waits but they are inaccurate. Up to 0.27 seconds is a number I believe has been floating around.

edit2: vjass hooks might be a really nice solution when I think about it
 
Last edited:
As I said, I am 99% certain it adds ONE animation to the queue. Then it freezes again.

edit: can confirm.
I used the following triggers to test.
  • init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Animation - Play Knight 0000 <gen>'s Attack 1 animation
  • esc
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Animation - Queue Knight 0000 <gen>'s Attack 1 animation
 
Last edited:
still, if you queue the stand animation after forcing the birth animation (for example with uprooted treants) that will unfreeze their animation

because like i said, stand is a looping animation which does not need to be ordered repeatedly
 
Status
Not open for further replies.
Back
Top