class selection screen camera problem
#1

Hi,

I am trying to set up the class selection screen in caligula's palace, and the problem is that player is facing the wrong way (i see him in the back). I need to rotate the player for 180 degrees.
here is the code i used:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2244.3157,1677.0133,1008.3658);
    SetPlayerCameraPos(playerid, 2241.4128,1676.6533,1008.3594);
    SetPlayerCameraLookAt(playerid, 2244.3157,1677.0133,1008.3658);
    SetPlayerInterior(playerid, 1);
    return 1;
}
any advice is appreciated.
Reply
#2

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid2244.3157,1677.0133,1008.3658);
    
SetPlayerCameraPos(playerid2241.4128,1676.6533,1008.3594);
    
SetPlayerCameraLookAt(playerid2244.3157,1677.0133,1008.3658);
    
SetPlayerFacingAngle(playerid180);
    
SetPlayerInterior(playerid1);
    return 
1;

Reply
#3

thanks^^
Reply
#4

Quote:
Originally Posted by [Diablo]
Посмотреть сообщение
I need to rotate the player for 180 degrees.
The answer was in the question
Reply
#5

haha i couldn't remember the SetPlayerFacingAngle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)