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

My camera doesn't move it just freezes after login GUI . Any help ?

I put it under OnPlayerConnect


Code:

Код:
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, 1200);
TogglePlayerSpectating(playerid, true);
Reply
#2

https://sampwiki.blast.hk/wiki/InterpolateCameraPos
https://sampwiki.blast.hk/wiki/InterpolateCameraLookAt
Reply
#3

I was using somekind of Camera Maker Filterscript i thought that that will just do the work , but i don't have any ideas how to do it
Reply
#4

UP

24 Hours passed.
Reply
#5

Put the 'TogglePlayerSpectating(playerid, true);' on top of them.
Reply
#6

Quote:
Originally Posted by phoon
Посмотреть сообщение
Put the 'TogglePlayerSpectating(playerid, true);' on top of them.
Same ... Nothing changed .
Reply
#7

BUMP , 24 hours passed .
Reply
#8

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.
}
Reply
#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
#10

BUMP 24 Hours passed .

Btw i used spawnplayer function and setspawninfo . I can't bypass skin selection .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)