SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=535885)



help - noamch1997 - 06.09.2014

i have set some "InterpolateCameraPos" , but the player camera doesnt follow the camera_move ..
how can i make the player camera to follow the "InterpolateCameraPos" ?
my codes :
pawn Код:
//InterpolateCameraPos(playerid, 694.9729, -2080.0005, 13.7564, 801.2624, -2079.0005, 13.7564, 2000, CAMERA_MOVE);//#1
//InterpolateCameraPos(playerid, 801.2624, -2079.0005, 13.7564, 801.2624, -2019.7043, 13.7564, 15000, CAMERA_MOVE);//#2
//InterpolateCameraPos(playerid, 801.2624, -2019.7043, 13.7564, 834.8059, -2019.7043, 13.7564, 25000, CAMERA_MOVE);//#3
//InterpolateCameraPos(playerid, 834.8059, -2019.7043, 13.7564, 834.8059, -2037.1066, 13.7564, 35000, CAMERA_MOVE);//#4



Re: help - MasonSFW - 06.09.2014

Quote:
Originally Posted by noamch1997
Посмотреть сообщение
i have set some "InterpolateCameraPos" , but the player camera doesnt follow the camera_move ..
how can i make the player camera to follow the "InterpolateCameraPos" ?
my codes :
pawn Код:
//InterpolateCameraPos(playerid, 694.9729, -2080.0005, 13.7564, 801.2624, -2079.0005, 13.7564, 2000, CAMERA_MOVE);//#1
//InterpolateCameraPos(playerid, 801.2624, -2079.0005, 13.7564, 801.2624, -2019.7043, 13.7564, 15000, CAMERA_MOVE);//#2
//InterpolateCameraPos(playerid, 801.2624, -2019.7043, 13.7564, 834.8059, -2019.7043, 13.7564, 25000, CAMERA_MOVE);//#3
//InterpolateCameraPos(playerid, 834.8059, -2019.7043, 13.7564, 834.8059, -2037.1066, 13.7564, 35000, CAMERA_MOVE);//#4
To

pawn Код:
InterpolateCameraPos(playerid, 694.9729, -2080.0005, 13.7564, 801.2624, -2079.0005, 13.7564, 2000, CAMERA_MOVE);//#1
InterpolateCameraPos(playerid, 801.2624, -2079.0005, 13.7564, 801.2624, -2019.7043, 13.7564, 15000, CAMERA_MOVE);//#2
InterpolateCameraPos(playerid, 801.2624, -2019.7043, 13.7564, 834.8059, -2019.7043, 13.7564, 25000, CAMERA_MOVE);//#3
InterpolateCameraPos(playerid, 834.8059, -2019.7043, 13.7564, 834.8059, -2037.1066, 13.7564, 35000, CAMERA_MOVE);//#4

TogglePlayerSpectating(playerid, true);

//Put it under OnPlayerConnect

//And Put this under OnPlayerRequestClass or when player logged in or spawned

TogglePlayerSpectating(playerid, false);