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

Time Stop plays Death animation

Status
Not open for further replies.
Level 10
Joined
Aug 19, 2008
Messages
491
Greetings fellow vJassers :wink:

As you all may know, I recently made a spell called Time Stop. It's a good spell I think, but I have this minor issue with animation.
See, when a unit dies, it stays in stopped mode for a while, but then it instantly moves to the ground and starts decaying. It looks sort of wierd and I'd like to fix it, but I don't know how.
I'd like it to stay in the same animation for the entire duration of the spell, and then die with a normal animation (it would look more realistic).

Cookie for the vJasser with the most proper solution.
 
Well actually I don't really know how it works. I've just been reading the DelayedSuspendDecay function in blizzard.j that uses it and figured it migh be of use, but I'm really not sure. Anyway, it just takes a unit and a boolean flag for its arguments, so you'd probably use it with a true argument at the beginning of your spell for all affected units (or when a unit dies under the spell's effect, not sure), and with a false argument at the end.

If that doesn't work you could always play the units' death animations manually via SetUnitAnimation when they die.
 
Status
Not open for further replies.
Back
Top