SetPlayerCameraLookat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerCameraLookat (
/showthread.php?tid=165623)
SetPlayerCameraLookat -
Nathan_Taylor - 05.08.2010
I am trying to change where the character and camera is when selecting your class.
Код:
SetupPlayerForClassSelection(playerid)
{
//SetPlayerInterior(playerid,14);
//SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
//SetPlayerFacingAngle(playerid, 270.0);
//SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
//SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1774.24169922,-2998.60498047,8.95931453);
SetPlayerFacingAngle(playerid, 0);
SetPlayerCameraPos(playerid,1767.26623535,-3000.20703125,9.48431396);
SetPlayerCameraLookAt(playerid,19.49951172,0.000000,99.99807739);
}
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
The commented ones are the ones defined by default for the gamemode, if I use the default positions and angles, and I edit the SetPlayerCameraLookAt, then the camera rotates fine. But If I use my locations and angles, Whenever I edit the angle, the camera doesn't move at all. Can anyone help me?
Re: SetPlayerCameraLookat -
Nathan_Taylor - 05.08.2010
bumpppppppp
Re: SetPlayerCameraLookat -
Nonameman - 05.08.2010
This problem was with my server too, try to do it with Ryder's Class Maker
http://forum.sa-mp.com/showthread.ph...ighlight=ryder
Re: SetPlayerCameraLookat -
Nathan_Taylor - 05.08.2010
Thnksssss