PDA

View Full Version : Camera on OnPlayerReqeustClass


Gamer_007
18/05/2013, 04:56 AM
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?

Threshold
18/05/2013, 05:42 AM
I believe you are looking for the function InterpolateCameraPos and InterpolateCameraLookAt. They're very easy functions to use, just use the tips given in http://wiki.sa-mp.com/wiki/InterpolateCameraPos and http://wiki.sa-mp.com/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.

Gamer_007
18/05/2013, 06:06 AM
Hmm come on skype brada.I am there :)