[HELP] Detecting the angle from checkpoints
#6

I tried it but it still didnt work. I want to make a spawn angle for the first checkpoint, here is the codes:

pawn Код:
new Float:angle;

angle = atan2(RaceCheckpoints[CurrentCheckpoint[playerid]][0] - RaceCheckpoints[CurrentCheckpoint[playerid]+1][0] , RaceCheckpoints[CurrentCheckpoint[playerid]][1] - RaceCheckpoints[CurrentCheckpoint[playerid]+1][1])
SetPlayerFacingAngle(playerid, angle);
SetPlayerPos(playerid,RaceCheckpoints[CurrentCheckpoint[playerid]][0],RaceCheckpoints[CurrentCheckpoint[playerid]][1],RaceCheckpoints[CurrentCheckpoint[playerid]][2]);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)