InterpolateCamera - 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 (
/showthread.php?tid=632575)
InterpolateCamera -
Melktert - 16.04.2017
Wherever I put this it doesn't seem to work, I've tried putting it below OnPlayerConnect..
PHP код:
InterpolateCameraPos(playerid, 825.591552, -1397.210571, 66.939865, 1559.048339, -1753.624511, 64.356185, 15000);
InterpolateCameraLookAt(playerid, 829.964477, -1399.634765, 66.908615, 1555.941162, -1750.466552, 62.038284, 2000);
Re: InterpolateCamera -
JustNothing - 16.04.2017
Quote:
Originally Posted by Melktert
Wherever I put this it doesn't seem to work, I've tried putting it below OnPlayerConnect..
PHP код:
InterpolateCameraPos(playerid, 825.591552, -1397.210571, 66.939865, 1559.048339, -1753.624511, 64.356185, 15000);
InterpolateCameraLookAt(playerid, 829.964477, -1399.634765, 66.908615, 1555.941162, -1750.466552, 62.038284, 2000);
|
Код HTML:
TogglePlayerSpectating(playerid, true);
before using interpolate...
Re: InterpolateCamera -
DarkSkull - 16.04.2017
Try using this before those lines:
PHP код:
TogglePlayerSpectating(playerid, 1);
EDIT: Didn't see JustNothings post. Bascially the same thing
Re: InterpolateCamera -
Melktert - 16.04.2017
I want it to happen when they register/login, where do I put it then?
Re: InterpolateCamera -
JustNothing - 16.04.2017
Quote:
Originally Posted by Melktert
I want it to happen when they register/login, where do I put it then?
|
where register/login starts? lol
Re: InterpolateCamera -
Melktert - 16.04.2017
When the register or login dialog pops up, the camera should start moving? What don't you understand?
Re: InterpolateCamera -
JustNothing - 16.04.2017
Quote:
Originally Posted by Melktert
When the register or login dialog pops up, the camera should start moving? What don't you understand?
|
if you put not where login/register starts camera wont start moving lol. as southclaw said not possible to move player's camera after OnPlayerConnect so write your login/register code after OnPlayerRequestClass
Re: InterpolateCamera -
Melktert - 16.04.2017
Not to be rude or anything but, I'd rather wait for someone with better grammar to reply.
Re: InterpolateCamera -
ISmokezU - 16.04.2017
He's Clearly telling you something good and you're being vacuous.
Re: InterpolateCamera -
Melktert - 16.04.2017
This is what I have there...
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetTimerEx("Spawn", 10, false, "i", playerid);
return 1;
}