SA-MP Forums Archive
Interpolate Camera 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: Interpolate Camera help (/showthread.php?tid=427448)



Interpolate Camera help - ProjectGANTON - 01.04.2013

Hello, i saw today that a server was interpolating camera at login, but i saw the dialog only when camera stopped the interpolating, so is there a callback like "OnPlayerCameraStop" ?
thanks i really need a thing like this


Re: Interpolate Camera help - Red_Dragon. - 01.04.2013

Maybe this was used https://sampwiki.blast.hk/wiki/InterpolateCameraLookAt but he fixed the time as he wants. Read this "time Time in milliseconds to complete interpolation" (it's written in the link given).


Re: Interpolate Camera help - ProjectGANTON - 01.04.2013

So, i should use a timer right?


Re: Interpolate Camera help - MP2 - 01.04.2013

You set the time for interpolation (in milliseconds) in the interpolation function. Set a timer for the same time.

P.S. The native (default) timers are bad, as they are inaccurate (by about 25 percent - a 10 second timer will be called after 12.5 seconds). I recommend you use fixes2 by ******: https://sampforum.blast.hk/showthread.php?tid=375925

Just include the file and load the plugin, everything is automatically fixed.