Problem with SetPlayerCameraPos on tutorial - help please
#1

Hi to all, i make tutorial and add SetPlayerCameraPos to look at some objects, after tutorial finish, and player spawn, camera didnt turn off, i see the same picture like last SetPlayerCameraPos and on radar a see that i can move character in game, but camera didint disapire how to fix it? tnx a lot
Reply
#2

Try this one.

https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer
Reply
#3

Quote:
Originally Posted by Mystique
This helped....tnx )
Reply
#4

forward DynUpdateStart(playerid);
forward DynUpdateEnd(playerid);
public DynUpdateStart(playerid)
{
SetPlayerCameraPos(playerid,-807.2981,1565.3751,47.4949);
SetPlayerCameraLookAt(playerid,-791.2880,1556.3445,32.9193);
SetTimerEx("DynUpdateEnd", 5000, 0,"e",playerid);
return 1;
}
public DynUpdateEnd(playerid)
{
TogglePlayerControllable(playerid,true);
SetCameraBehindPlayer(playerid);
return 1;
}



Is this working?Remember to change the coordinates.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)