Alright, thank you, I never use locations so the optimization is not a problem xD. I had that in mind as well, but that gives me a new coordinates behind a let's say hero (or in front), but I still have to pick units in circle, I wasn't really sure how accurate that is, so i wanted to see if someone has found a better solution

. Anyways ty for trying to help.
Let's say I want to make this spell:
The caster throws a spear at a targeted enemy unit. When unit gets hit by a spear it will be pushed back. The target will stop when either the force of the throw stops, of if he hits the unit behind him, in which case both units would be stopped and stabbed for a short duration.
Now nothing here is a really a problem, except detecting units behind the targeted one.