Camera on OnPlayerReqeustClass - 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: Camera on OnPlayerReqeustClass (
/showthread.php?tid=437962)
Camera on OnPlayerReqeustClass -
Gamer_007 - 18.05.2013
Guys, I saw many server having moving camera and they move very soothly but i have rotating camera that not runs smoothly.Can anyone tell me how i make it so it move smoothly?? An Idea or an example FS?
Re: Camera on OnPlayerReqeustClass -
Threshold - 18.05.2013
I believe you are looking for the function
InterpolateCameraPos and
InterpolateCameraLookAt. They're very easy functions to use, just use the tips given in
https://sampwiki.blast.hk/wiki/InterpolateCameraPos and
https://sampwiki.blast.hk/wiki/InterpolateCameraLookAt
It will run a lot smoother, but you will be required to get the coordinates that the camera is going to move to. Using InterpolateCameraLookAt in conjunction with InterpolateCameraPos will give off the effect of a 'rotating' camera.
Re: Camera on OnPlayerReqeustClass -
Gamer_007 - 18.05.2013
Hmm come on skype brada.I am there