The spell I want to make: Hero targets point, shock wave travels that direction for 500/600/700/800) units when the shock wave comes in contact with units it pushs them to the sides.
Now how I imagine I would do this is to upon casting create a dummy unit with the shockwave model and knock'back' it towards the target point. But I am unsure how to leaklessly & lagfreely knockback the units it comes in contact with.
I would think that I could have a trigger that every .4 seconds picks every unit matching unit-type equal to that of the dummy unit, then pick every unit around that and knock it back. But the problem with that is a unit could get knocked back twice.
So I was wondering if I could get some suggestions on how to make this work.
Now how I imagine I would do this is to upon casting create a dummy unit with the shockwave model and knock'back' it towards the target point. But I am unsure how to leaklessly & lagfreely knockback the units it comes in contact with.
I would think that I could have a trigger that every .4 seconds picks every unit matching unit-type equal to that of the dummy unit, then pick every unit around that and knock it back. But the problem with that is a unit could get knocked back twice.
So I was wondering if I could get some suggestions on how to make this work.