SA-MP Forums Archive
Camera moving backwards ? +Rep - 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 moving backwards ? +Rep (/showthread.php?tid=375036)



Camera moving backwards ? +Rep - ShawnMiller1337 - 04.09.2012

Hello All,
I joined a server earlier and their login screen was a camera looking at LS but it was moving backwards in motion ? What function is that on SA-MP to make the camera move back in motion. If so please help much appreciated +Rep


Re: Camera moving backwards ? +Rep - Ironboy - 04.09.2012

Check this out
https://sampwiki.blast.hk/wiki/InterpolateCameraPos
https://sampwiki.blast.hk/wiki/InterpolateCameraLookAt

EDIT: Example
pawn Код:
InterpolateCameraPos(playerid, 1668.9432,-1458.1198,120.6119, 1506.6499,-1675.8396,41.2007, 3000, CAMERA_MOVE);
    InterpolateCameraLookAt(playerid, 1586.5640,-1281.9943,120.6119, 1554.6344,-1675.5366,16.1953, 3000, CAMERA_MOVE);



Re: Camera moving backwards ? +Rep - ShawnMiller1337 - 04.09.2012

Thank you!