Forum
CS2D Scripts direction against x and ydirection against x and y
2 Antworten 1
1
math.atan2(x1 - x2, y1 - y2) * 180 / math.pi
havent tested cause i got error on this code by anothere user
dist = math.sqrt((x_pos - player(i,"x"))^2 + (y_pos - player(i,"y"))^2)
1× editiert, zuletzt 26.04.11 20:58:31
1