Character is invisible in spawn..
#1

Hello.. My character is invisible when I am selecting character in the class selection. I can not see my character, however I can see the gametext.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 222.48, 1822.94, 6.41);
    SetPlayerCameraPos(playerid, 222.48, 1822.94, 8.41);
    SetPlayerCameraLookAt(playerid, 210.82, 1822.66, 7.41);
    SetPlayerFacingAngle(playerid, 269.7381);
    switch(classid)
    {
        case 0..2:
        {
            GameTextForPlayer(playerid, "~r~Civillian", 3000, 3);
            PlayerClass[playerid] = CIVILLIAN;
        }
pawn Код:
AddPlayerClass(72,222.48, 1822.94, 6.41,277.8612,0,0,0,0,0,0); //0-Civillian
    AddPlayerClass(60,222.48, 1822.94, 6.41,277.8612,0,0,0,0,0,0); //1-Civillian
    AddPlayerClass(23,222.48, 1822.94, 6.41,277.8612,0,0,0,0,0,0); //2-Civillian
Any idea what is wrong?
Reply
#2

Its most likely that your camera is not looking in the correct position or your player pos is not where the camera is looking

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 40 seconds.
Reply
#3

Change the code to
pawn Код:
public OnPlayerRequestClass(playerid, classid){    SetPlayerPos(playerid, 222.48, 1822.94, 6.41);    SetPlayerCameraPos(playerid, 222.48, 1822.94, 8.41);    SetPlayerCameraLookAt(playerid, 222.48, 1822.94, 6.41);    SetPlayerFacingAngle(playerid, 269.7381);    switch(classid)    {        case 0..2:        {            GameTextForPlayer(playerid, "~r~Civillian", 3000, 3);            PlayerClass[playerid] = CIVILLIAN;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)