Hi guys. I want to create special effect which apear when unit life is below 30 % and remove these special effect when unit has more than 30%. I dont know how to triger it. I want to avoid periodic event "every 1 second of game and pick every unit in playable map area" because this event make game lag when many units are in map.
Any ideas ?
I used
But this only create special effect, I want to remove these special efect only when unit life are greather than 30%
Any ideas ?
I used
Code:
Sur
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
((Attacked unit) is A Hero) Equal to True
(Percentage life of (Attacked unit)) Less than 30.00
Actions
Special Effect - Create a special effect attached to the origin of (Attacked unit) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
Special Effect - Destroy (Last created special effect)
But this only create special effect, I want to remove these special efect only when unit life are greather than 30%