[Blizz ABS] Getting Distance Traveled for Projectile

Started by Shadow Eye31, March 05, 2013, 09:18:04 pm

Previous topic - Next topic

Shadow Eye31

Hello.

I was wondering if there is a way to record the distance traveled by a projectile before impact to a variable for use in the attack_effect method. For instance, if the player fires an arrow that travels 3 tiles, variable @distance_traveled is set to 3. Then, in attack_effect, @distance_traveled can be referenced for various things, such as damage multiplier or hit rate. I do not know if this is possible, but if it is, how would I go about recording that distance and referencing it in attack_effect?

Thank you.