SA-MP Forums Archive
InterPolateCamera issue - 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 issue (/showthread.php?tid=529949)



InterPolateCamera issue - Xenforox - 04.08.2014

this is what i've added under onplayerconnect
Код:
TogglePlayerSpectating(playerid, 1);
        InterpolateCameraLookAt(playerid, 101.8813, -2089.6833, 75.0991,645.7932, -1552.5399, 75.0991, 20000, CAMERA_MOVE);
        InterpolateCameraPos(playerid, 101.8813, -2089.6833, 75.0991, 645.7932, -1552.5399, 75.0991, 20000, CAMERA_MOVE);
But it's not working! dunno the reason.


Re: InterPolateCamera issue - Dignity - 04.08.2014

Try using a timer.

pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);
    SetTimerEx("InterpolateCam", 1000, false, "i", playerid);
   
    return 1;
}

forward InterpolateCam(playerid);
public InterpolateCam(playerid)
{
    InterpolateCameraLookAt(playerid, 101.8813, -2089.6833, 75.0991,645.7932, -1552.5399, 75.0991, 20000, CAMERA_MOVE);
    InterpolateCameraPos(playerid, 101.8813, -2089.6833, 75.0991, 645.7932, -1552.5399, 75.0991, 20000, CAMERA_MOVE);

    return 1;
}



Re: InterPolateCamera issue - dirigent00 - 04.08.2014

Where are you using it?


Re : Re: InterPolateCamera issue - Xenforox - 04.08.2014

Thanks Mionee. it works now but it's glitchy.


Re: InterPolateCamera issue - Dignity - 04.08.2014

How is it glitchy?


Re : InterPolateCamera issue - Xenforox - 04.08.2014

Sometimes,the camera lookat changes randomly.


Re: InterPolateCamera issue - SickAttack - 04.08.2014

Its been bugged for a while now (SA:MP bug). The camera either skips or stops. It's normal, no certain fix (server sided).