05.08.2010, 15:50
I am trying to change where the character and camera is when selecting your class.
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?
Код:
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;
}


