InterpolateCamera while spectating - 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: InterpolateCamera while spectating (
/showthread.php?tid=392982)
SOLVED - InterpolateCamera while spectating -
SKAzini - 16.11.2012
SOLVED
Is there any way to use InterpolateCamera while spectating? As in having a camera passing by a landscape while you cant see the map, money bar, weapon e.t.c?
Any help is appreciated.
Re: InterpolateCamera while spectating -
SKAzini - 17.11.2012
Hmm?
Respuesta: InterpolateCamera while spectating -
[DOG]irinel1996 - 17.11.2012
Just use it normally, it works for me while the player is spectating. :S
What's your problem?
Re: InterpolateCamera while spectating -
SKAzini - 17.11.2012
I just tried InterpolateCamera together with spectate mode in OnPlayerSpawn and it worked.. hmm..
pawn Код:
public OnPlayerSpawn(playerid) {
if(!PlayerLogged[playerid]) {
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, 1215.722900, 979.580139, 62.094230, 2761.392333, 2875.322509, 68.985809, 60000);
InterpolateCameraLookAt(playerid, 1213.295410, 983.934265, 61.707897, 2758.177246, 2871.771240, 67.553054, 60000);
}
return 1;
}
Respuesta: InterpolateCamera while spectating -
[DOG]irinel1996 - 17.11.2012
It should work correctly, if it doesn't just put a short timer after TogglePlayerSpectating and call a function with InterpolateCamera...
I hope you understand me, if you didn't just ask again.