Camera problem
#1

So I tried changing the CameraLookAt and pos but seems not to work

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerCameraPos(playerid1486.9767,-1579.1045,67.2109);
    
SetPlayerCameraLookAt(playerid1483.6805,-1671.0867,15.9783);
    
SetSpawnInfo(playerid000030000000); 
    
TogglePlayerSpectating(playeridtrue);
    return 
1;

I still have the default camera view
Reply
#2

Spectating will change the camera. Enable upon connecting, disable after logging in.
Reply
#3

Yes but how do I disable the "Spawn" button then?
Reply
#4

Toggling spectating, but you cant change the camera when it's enabled though :/
Reply
#5

OnPlayerConnect > disable spectating & set camera pos
OnPlayerRequestClass > Enable spectating

Correct?
Reply
#6

Still wont work.

You have 2 options
Enable on connect, disable on login and auto spawn

enable on connect, disable on login and do ur stuff under OnPlayerRequestClass and deal with the button.
Reply
#7

How about enable spectating and make a timer of 0.5 sec which will do the following:

Код:
    SetPlayerPos(playerid, 1486.9767,-1579.1045,67.2109); 
    SetPlayerCameraPos(playerid, 1486.9767,-1579.1045,67.2109); 
    SetPlayerCameraLookAt(playerid, 1483.6805,-1671.0867,15.9783); 
    SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)