I need help
#1

Hello,

I have a problem with my Class selection.

Код:
 public SetupPlayerForClassSelection(playerid)
{
    SetPlayerPos(playerid,1594.7581,1448.0330,33.8799); // da steht der skin
    SetPlayerFacingAngle(playerid, 33.8799);// da guckt er hin (z coordinate)
    SetPlayerCameraPos(playerid,1600.0800,1448.3456,33.6550); // da steht die kamera
    SetPlayerCameraLookAt(playerid,1594.7581,1448.0330,33.8799); // coord von "da steht der skin"
    return 1;
}
It works, but the skin don't look in the camera. why?

sorry for my bad english :S
Reply
#2

Change the coords of AddPlayerClass to.

Код:
AddPlayerClass(20, 1594.7581,1448.0330,33.8799, 0, 0, 0, 0, 0, 0, 0);
Under OnGameModeInit
Reply
#3

Quote:
Originally Posted by Saitecx
Посмотреть сообщение
Hello,

I have a problem with my Class selection.

Код:
 public SetupPlayerForClassSelection(playerid)
{
    SetPlayerPos(playerid,1594.7581,1448.0330,33.8799); // da steht der skin
    SetPlayerFacingAngle(playerid, 33.8799);// da guckt er hin (z coordinate)
    SetPlayerCameraPos(playerid,1600.0800,1448.3456,33.6550); // da steht die kamera
    SetPlayerCameraLookAt(playerid,1594.7581,1448.0330,33.8799); // coord von "da steht der skin"
    return 1;
}
It works, but the skin don't look in the camera. why?

sorry for my bad english :S
This is supposed to be ANGLE, not Z Coordinate.
Z Coordinate is already in SetPlayerPos function. SetPlayerPos parameters are as following ( Float:X Coord, Float:Y Coord, Float:Z Coord); . Also, don't do as Hash said - that will change your player spawn, instead of facing angle at class selection screen.
Reply
#4

and what should I write into that now?
Reply
#5

Quote:
Originally Posted by Saitecx
Посмотреть сообщение
and what should I write into that now?
Change it to whatever angle you wish it to be, from 0 to 360. 0 being the north.
If you got your coords with /save command, Angle is the 5th parameter in your "savedpositions.txt" file.
Код:
AddPlayerClass(0,2037.6133,1343.8833,10.6719,276.0359,0,0,0,0,0,0); // comment
Reply
#6

Thanks.. its work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)