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



Interpolate Camera question - FalconeX - 31.03.2013

Solved!


Re: Interpolate Camera question - SilverKiller - 31.03.2013

Do TogglePlayerSpectating(playerid, 1); (not needed), then call a timer for the first shot, in the timer call another timer and etc then in the final timer (shot 4) use The Interpolate CameraPos / Look at, and TogglePlayerSpectating(playerid, 0); (not also needed), this should work as it did for me.


Re: Interpolate Camera question - Threshold - 31.03.2013

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
Do TogglePlayerSpectating(playerid, 1); (not needed), then call a timer for the first shot, in the timer call another timer and etc then in the final timer (shot 4) use The Interpolate CameraPos / Look at, and TogglePlayerSpectating(playerid, 0); (not also needed), this should work as it did for me.
TogglePlayerSpectating is needed in most cases... for example, one location is in Los Santos, and the second is in San Fierro. So unless you use TogglePlayerSpectating, none of the objects will stream in, therefore giving you a 'blank map', however there are alternatives such as using SetPlayerPos to set the player to a location close to the next location. Example: Setting a players position to San Fierro before the camera is set to go to San Fierro, therefore objects are streamed in. NOTE: TogglePlayerSpectating(playerid, 0); will call OnPlayerSpawn, so it will most likely stuff up a bit of the process.


Re: Interpolate Camera question - MP2 - 31.03.2013

Using TogglePlayerSpectating makes it so objects stream in. Using SetPlayerPos when using Interpolation over long distance wouldn't be ideal.

I made an include for this sort of thing, search for it (it's in my releases topic).