Interpolate camera doesn't work . [Help]
#9

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);
    SetPlayerCameraPos(playerid, -2625.480712, 2251.552246, 12.997936);
    SetPlayerCameraLookAt(playerid, -2620.974853, 2249.394042, 12.796076); //Just for debug purposes, and it makes the movement look smoother.
    SetTimerEx("StartupCamera", 1000, false, "i", playerid);
    return 1;
}

forward StartupCamera(playerid);
public StartupCamera(playerid)
{
    InterpolateCameraPos(playerid, -2625.480712, 2251.552246, 12.997936, -2469.983642, 2201.085205, 13.875505, 12000);
    InterpolateCameraLookAt(playerid, -2620.974853, 2249.394042, 12.796076, -2465.130371, 2199.903320, 13.652922, 12000);
    //I don't know if InterpolateCameraLookAt was meant to be at 1200 or 12000 speed...
    //May want to TogglePlayerSpectating off here, and send your player to class selection or spawn them depending on your preference.
}
Thanks it works now .

But only thing i want to do is by pass onplayerrequestclass , so it will spawn automaticlly .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)