I want to make a spell that causes the targeted units to be blasted backwards, I can do most of it but one part: It needs to some how get the opposite angle from the point I target (its AoE)
For Example, I target an area and an unit affected is directally south of the center of the targeted area, the unit needs to be moved from the center point, but I can't seem to find a way to do this,
I set the center as a variable, but How do I then set a point thats behind the targeted unit at the right angle?
Center Is here * Unit here * thrown back here*
Unit here*
thrown here *
(Distences are not right Just showing what I mean, If you need more info, please ask
)
For Example, I target an area and an unit affected is directally south of the center of the targeted area, the unit needs to be moved from the center point, but I can't seem to find a way to do this,
I set the center as a variable, but How do I then set a point thats behind the targeted unit at the right angle?
Center Is here * Unit here * thrown back here*
Unit here*
thrown here *
(Distences are not right Just showing what I mean, If you need more info, please ask