MorbazanRhot
New Member
- Reaction score
- 7
Okay, so I think this is a pretty simple question, but it eludes me:
I have an effect on some creeps that when they're attacked, they reduce the attacker's hp by 10% and create the Red Immolation damage effect on the attacker. Now I know that I need to destroy the special effect to prevent leaks, but this is one of the ones that requires a wait before it's destroyed otherwise it wont show anything. So my question is: how do I trigger this so that I can be sure each one gets destroyed, yet still exists for a visible amount of time?
Normally I would just set the SFX to a variable and then destroy the variable, but if another unit attacked within the wait time (which is very probable) then the first SFX wouldn't get destroyed as the variable would get set to the new one. I could put a destroy the variable SFX event at the beginning of the trigger too, but then I'm afraid with many units attacking at once you wouldn't see the SFX on most of the units as another unit attacked immediately afterwards. And given that there can be numerous different summoned units attacking, I can't use custom values for the units (that I know of).
Thanks, and +rep for any help.
I have an effect on some creeps that when they're attacked, they reduce the attacker's hp by 10% and create the Red Immolation damage effect on the attacker. Now I know that I need to destroy the special effect to prevent leaks, but this is one of the ones that requires a wait before it's destroyed otherwise it wont show anything. So my question is: how do I trigger this so that I can be sure each one gets destroyed, yet still exists for a visible amount of time?
Normally I would just set the SFX to a variable and then destroy the variable, but if another unit attacked within the wait time (which is very probable) then the first SFX wouldn't get destroyed as the variable would get set to the new one. I could put a destroy the variable SFX event at the beginning of the trigger too, but then I'm afraid with many units attacking at once you wouldn't see the SFX on most of the units as another unit attacked immediately afterwards. And given that there can be numerous different summoned units attacking, I can't use custom values for the units (that I know of).
Thanks, and +rep for any help.