XXXconanXXX
Cocktails anyone?
- Reaction score
- 279
Well, here's a thing I figured out on how to do something or trigger something right as a missle hits. Such as, if you have Shockwave and want it to damage a certain unit right as the missle hits, you'd do this:
The "1000.00" being the missle speed of the spell, and it'll do whatever you want after that wait.
So, basically you'll calculate the distance between the target and the target unit or point, and divide it by the missle speed of the spell. You can also do things halfway before the missle hits, by adding another division and dividing it by 2.
And, as a side note, which I got from Vexorian, you can wait 1.5 seconds when doing things with the Angel(Paladin Revival spell) effect, because that's right when the Angel swings his mighty sword.
Hope you enjoy, and you can really play around with timings and missle speeds.
Code:
Wait ((Distance between (Position of (Casting unit)) and (Position of (Target unit of ability being cast))) / 1000.00) seconds
The "1000.00" being the missle speed of the spell, and it'll do whatever you want after that wait.
So, basically you'll calculate the distance between the target and the target unit or point, and divide it by the missle speed of the spell. You can also do things halfway before the missle hits, by adding another division and dividing it by 2.
And, as a side note, which I got from Vexorian, you can wait 1.5 seconds when doing things with the Angel(Paladin Revival spell) effect, because that's right when the Angel swings his mighty sword.
Hope you enjoy, and you can really play around with timings and missle speeds.


