I'm need a trigger that "pushes" a unit away from another.
when unit is attacked
unit type of attacking unit == unit1
unit - move triggering unit instantly to triggering unit offset by 10 towards (attacking unit facing) degrees blend
but it keeps throwing the unit in the wrong direction
I'm need a trigger that "pushes" a unit away from another.
when unit is attacked unit type of attacking unit == unit1 unit - move triggering unit instantly to triggering unit offset by 10 towards (attacking unit facing) degrees blend
but it keeps throwing the unit in the wrong direction
any ideas?
Try doing (attacking unit facing) - 180 if it's throwing it in the wrong direction.
@Atl0s: Go
yea i did think of that but its not 180 out its more like 45 but its only pushes the unit up or down rather than away from the attacker
Solved :
for anyone else who is interested or looking for something similar
because the attacking unit is a structure, I had to modify the Facing before setting the variable