Camera problem
#1

Hello,

I have problem when i set this both

InterpolateCameraPos(playerid, -1034.764526, 1566.679565, 78.175552, 363.575378, 1691.733032, 76.135620, 10000);
InterpolateCameraLookAt(playerid, -1029.811645, 1567.347167, 78.021675, 359.672302, 1694.636840, 74.980529, 10000);

inside OnPlayerConnect its not working doesent even show this position! How to fix that ?
Reply
#2

It does work if you put it in a blank script. You'll probably have to put that in a timer, or with a player fully connected detection system, run that code.
Reply
#3

You have to put in OnPlayerRequestClass

Edit:
Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, -1034.764526, 1566.679565, 78.175552, 363.575378, 1691.733032, 76.135620, 10000);
InterpolateCameraLookAt(playerid, -1029.811645, 1567.347167, 78.021675, 359.672302, 1694.636840, 74.980529, 10000);
// rest of your code
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)