sentrywiz
S
sentrywiz
Suppose I have a spell "Frost Bolt" that is supposed to launch a missile, hit the target and apply a slow afterwards. Since there is no such default spell in warcraft I figure I'd make a Fireball and cast a Slow afterwards.
Thing is, I want the slow after the missile hits the target, if I just make it on starts the effect of an ability, it will look junky and bad. It will cast the slow before missile hits the target.
So how do I calculate the range between the two units and then convert it into a time interval so the dummy unit will wait X seconds before casting?
I should also note -- how would the missile speed impact the calculation?
Thing is, I want the slow after the missile hits the target, if I just make it on starts the effect of an ability, it will look junky and bad. It will cast the slow before missile hits the target.
So how do I calculate the range between the two units and then convert it into a time interval so the dummy unit will wait X seconds before casting?
I should also note -- how would the missile speed impact the calculation?