how to make advanced character selection!!!
#5

I believe you are after the function InterpolateCameraPos

https://sampwiki.blast.hk/wiki/InterpolateCameraPos

Your code should look something like this:
pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerCameraPos(playerid, x, y, z);
InterpolateCameraPos(playerid, x, y, z, 100.33, 459.3, 19.1, time, CAMERA_MOVE);
SetPlayerCameraLookAt(playerid, 100, 450, 19);
//Code continues...
Replace 'time' in the InterpolateCameraPos with the amount of time you want it to take for the camera to get to the position. The floats in the InterpolateCameraPos and SetPlayerCameraLookAt functions are just examples, and are not recommended for use in your script.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)