Probably a noob question...
Im making a spell.When a unit is attacked its supposed to do something,for example,blow up.
However,it doesnt work very well.By "is attacked" the editor obviously refers to the point when the enemy unit starts attacking,so my problem is that the spell looks pretty bad.
Example: Attacker fires a missile.Missile gets to 1/10 of its way to the target,target blows up.This doesnt look good at all,since the point of the spell is to look like the hit caused the explosion.
There are tons of different units with different missile speeds and attack speed animations,so i cant rely on the "wait" funcion.
Is there a way to make an action trigger when a unit takes damage?Ive looked for such an event but couldnt find it.
Im making a spell.When a unit is attacked its supposed to do something,for example,blow up.
However,it doesnt work very well.By "is attacked" the editor obviously refers to the point when the enemy unit starts attacking,so my problem is that the spell looks pretty bad.
Example: Attacker fires a missile.Missile gets to 1/10 of its way to the target,target blows up.This doesnt look good at all,since the point of the spell is to look like the hit caused the explosion.
There are tons of different units with different missile speeds and attack speed animations,so i cant rely on the "wait" funcion.
Is there a way to make an action trigger when a unit takes damage?Ive looked for such an event but couldnt find it.