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