InterPolateCamera issue
#1

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.
Reply
#2

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;
}
Reply
#3

Where are you using it?
Reply
#4

Thanks Mionee. it works now but it's glitchy.
Reply
#5

How is it glitchy?
Reply
#6

Sometimes,the camera lookat changes randomly.
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)