Tutorial question
#1

https://www.youtube.com/watch?v=Fdy5nfK7Pjo&t=25s

How can I do the first step of tutorial moving like this?
Mine one is not even moving from a part of map to another, is moving down to the spawn...

SetPlayerPosEx(i, 1144.9558,-1768.4365,16.5992);
InterpolateCameraPos(i,1197.5511,-1716.0587,46.6448, 1144.9558,-1768.4365,16.5992, 30000, CAMERA_MOVE);
InterpolateCameraLookAt(i, 1153.3126,-1767.5778,16.5938, 1144.9558,-1768.4365,16.5992, 30000, CAMERA_MOVE);

My coords
Reply
#2

given code is right, problem isn't here, can u provide more code ?
Reply
#3

why would you use "i" ?

i think you have this at onplayerconnect,just use.

PHP код:
SetPlayerPosEx(playerid1144.9558,-1768.4365,16.5992);
InterpolateCameraPos(playerid,1197.5511,-1716.0587,46.64481144.9558,-1768.4365,16.599230000CAMERA_MOVE);
InterpolateCameraLookAt(playerid1153.3126,-1767.5778,16.59381144.9558,-1768.4365,16.599230000CAMERA_MOVE); 
Reply
#4

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
why would you use "i" ?

i think you have this at onplayerconnect,just use.

PHP код:
SetPlayerPosEx(playerid1144.9558,-1768.4365,16.5992);
InterpolateCameraPos(playerid,1197.5511,-1716.0587,46.64481144.9558,-1768.4365,16.599230000CAMERA_MOVE);
InterpolateCameraLookAt(playerid1153.3126,-1767.5778,16.59381144.9558,-1768.4365,16.599230000CAMERA_MOVE); 
he doesn't provides a more code, so this given code is right in this case.
but yeah, if he's using this in OnPlayerConnect, he must use playerid, instead of i.
Reply
#5

Not to forget you gotta check after player logs in, and then interpolate once again, then once he did something do it again. It won't work with just one line onconnect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)