15.07.2013, 16:06
(
Последний раз редактировалось RedFusion; 16.07.2013 в 13:07.
)
I've run into some problems with a racing script.
I want the player to be angled towards the next checkpoint, is this possible to get from the checkpoint coordinates?
If so, how?
I want the player to be angled towards the next checkpoint, is this possible to get from the checkpoint coordinates?
If so, how?
pawn Код:
cp = player_cp[playerid];
if(cp == cps) nextcp = 0;
else nextcp = cp + 1;
x = race_cp[cp][0];
y = race_cp[cp][1];
z = race_cp[cp][2];
x2 = race_cp[nextcp][0];
y2 = race_cp[nextcp][1];
/*angle = ... ? */