Lets say I have 2 units, unit A and unit B and they are in a position similar to this:
A
..\
...\
....B
I want unit B to move away from unit A so the units will end up something like this (i.e. a simple knock-back spell)
A
.\
..\
...\
....B
This seemed fairly easily to trigger for me, and this was the trigger I had when I was done:
Move Unit B to Position of Unit B offset by -500 towards unit A.
For some reason unit B only moved closer to unit A, so I thought, ok apparently world editor won't let me use negative distances, logical enough. So then I tried using this trigger code:
Move Unit B to position of Unit B offset by 500 towards angle between unit A and unit B. And this didn't work either.
So I know this seems like a stupid question to ask, but I looked at a few knockback posts in the forums, and I couldn't find it, so how do you move a unit AWAY from another unit?
A
..\
...\
....B
I want unit B to move away from unit A so the units will end up something like this (i.e. a simple knock-back spell)
A
.\
..\
...\
....B
This seemed fairly easily to trigger for me, and this was the trigger I had when I was done:
Move Unit B to Position of Unit B offset by -500 towards unit A.
For some reason unit B only moved closer to unit A, so I thought, ok apparently world editor won't let me use negative distances, logical enough. So then I tried using this trigger code:
Move Unit B to position of Unit B offset by 500 towards angle between unit A and unit B. And this didn't work either.
So I know this seems like a stupid question to ask, but I looked at a few knockback posts in the forums, and I couldn't find it, so how do you move a unit AWAY from another unit?