Posts: 145
Threads: 18
Joined: Jan 2012
Reputation:
0
How it is possible to set rotation of a object to a coordinates?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Trigonometry
Something like
[pawn]
new Float:angle = 360.0 - atan2(target_x - own_x, target_y - own_y);