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

Spell Animation Issue

Status
Not open for further replies.
Level 2
Joined
Apr 23, 2013
Messages
12
Hello everyone, I have a problem with a spell, with his animation in particular.
The spell is supposed to be an immolation that also heals nearby allies every second. Pretty simple. Indeed the immolation damage works and my trigger to heal the allies either. But I also wanted to play a little heal animation on allies when they get a heal. So I put down this trigger:

Event: Every 1 second of game time
Condition: (MyUnit) has buff Immolation Equal to TRUE
Actions: Unit Group* - Pick every unit in (Units within 350.00 of (Position of MyUnit) matching ((((Matching unit) belongs to an ally of (Owner of MyUnit)) Equal to TRUE) or ((Owner of (Matching unit)) Equal to (Owner of MyUnit)))) and do (Actions)
Loop - Actions
Unit* - Create 1 Animation_dummy for Player (Red) at (Position of (Picked unit)) facing blabla buildings degrees
Unit* - Add a 1.00 second Generic expiration timer to (Last created unit)


The dummy has the "Gain experience" animation as model, but, after a quick try, I noticed the the dummies were not deleted after their spawn, and in a few seconds the map started lagging and glitching under the pressure of all those models, one onto the other. I can't understand why the generic expiration timer don't work on the dummy.

Thanks for the help.
 
The expiration timers do work on the dummies, but it only kills them. When a unit dies, it doesn't disappear (at least not instantatly) but it plays its "death" animation instead. Since your dummy doesn't have that animation, it keeps playing its default animation ("stand" in that case).

The solutions :
1) You can use special effects instead of a dummy. Alternatively, if you need to change the effect's size, you can use a dummy with no model (use Vexorian's dummy since you need an attachment point) and add/destroy the special effect on him.
2) You can remove your dummy from the game after it ends its animation. The easiest way to to it in GUI is to use this trigger (plus the one you're already using) :
  • Events
    • Unit - A unit dies
  • Conditions
    • (Unit-type of (triggering unit)) equals to Animation_dummy
  • Actions
    • Unit - Remove (triggering unit) from the game
The animation duration for "LevelupCaster.mdx" is of 1.867 seconds.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
The solution Nichilus posted is better than using a trigger for this.

You can leave Art - Death time to the default value, a few seconds if you want to play some animation or effect on the dying unit.

The death type, does not decay, makes the unit to skip the bone and flesh decay times, which are 90 seconds by default.
 
Status
Not open for further replies.
Top