- Joined
- Jun 28, 2008
- Messages
- 776
How do you move a unit in a certain direction using SetUnitX and SetUnitY.
I usually do this
There must be an easier way to move a unit in a certain angle, without having to declare another location?
Thanks in advance
I usually do this
JASS:
local unit u
local location p = PolarProjection(point, distance, angle)
local real x = GetLocationX(p)
local real y = GetLocationY(p)
call SetUnitX(u, x)
call SetUnitY(u, y)
There must be an easier way to move a unit in a certain angle, without having to declare another location?
Thanks in advance