SA-MP Forums Archive
class selection screen camera problem - 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)
+--- Thread: class selection screen camera problem (/showthread.php?tid=282367)



class selection screen camera problem - [Diablo] - 10.09.2011

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.


Re: class selection screen camera problem - Jafet_Macario - 10.09.2011

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;




Re: class selection screen camera problem - [Diablo] - 10.09.2011

thanks^^


Re: class selection screen camera problem - Sasino97 - 10.09.2011

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


Re: class selection screen camera problem - [Diablo] - 10.09.2011

haha i couldn't remember the SetPlayerFacingAngle