Tutorial question -
enzulikeS - 10.02.2018
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
Re: Tutorial question -
Mugala - 10.02.2018
given code is right, problem isn't here, can u provide more code ?
Re: Tutorial question -
PepsiCola23 - 10.02.2018
why would you use "i" ?
i think you have this at onplayerconnect,just use.
PHP код:
SetPlayerPosEx(playerid, 1144.9558,-1768.4365,16.5992);
InterpolateCameraPos(playerid,1197.5511,-1716.0587,46.6448, 1144.9558,-1768.4365,16.5992, 30000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1153.3126,-1767.5778,16.5938, 1144.9558,-1768.4365,16.5992, 30000, CAMERA_MOVE);
Re: Tutorial question -
Mugala - 10.02.2018
Quote:
Originally Posted by PepsiCola23
why would you use "i" ?
i think you have this at onplayerconnect,just use.
PHP код:
SetPlayerPosEx(playerid, 1144.9558,-1768.4365,16.5992);
InterpolateCameraPos(playerid,1197.5511,-1716.0587,46.6448, 1144.9558,-1768.4365,16.5992, 30000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1153.3126,-1767.5778,16.5938, 1144.9558,-1768.4365,16.5992, 30000, CAMERA_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.
Re: Tutorial question - Astralis - 11.02.2018
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.