Camera
#1

How do i make or force when OnPlayerConnect he will be able to see player select skin on my mapped interior on login/register like on Stunt Evolution Freeroam server! help me ;( I tried with SetPlayerCameraPos and SetPlayerCameraLookAt but no work
Reply
#2

Use SetPlayerPos, SetPlayerCameraPos and SetPlayerCameraLookAt on OnPlayerRequestClass, not OnPlayerConnect, remember to set the interior of the player as well if the destination is mapped in an interior.
Reply
#3

i already did but no work
Reply
#4

Show your OnPlayerRequestClass and explain how it doesn't work.
Reply
#5

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 439.1598,-3238.1653,1350.6810);
	SetPlayerFacingAngle(playerid, 100.2);
	SetPlayerCameraPos(playerid, 332.2801,-1478.9952,3500.9161);
	SetPlayerCameraLookAt(playerid, 439.1598,-3238.1653,1350.6810);
    return 1;
}
Reply
#6

Quote:
Originally Posted by Hunud
Посмотреть сообщение
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 439.1598,-3238.1653,1350.6810);
	SetPlayerFacingAngle(playerid, 100.2);
	SetPlayerCameraPos(playerid, 332.2801,-1478.9952,3500.9161);
	SetPlayerCameraLookAt(playerid, 439.1598,-3238.1653,1350.6810);
    return 1;
}
And how does it not work? What happens when a player connects and is sent to class selection?

Edit: By the way.... Your CameraLookAt is WAY too below of your CameraPos, I doubt such a distance is even streamable but I could be wrong.
Reply
#7

Well when OnPlayerConnect a player camera position is normal one(Looking at beach) but this one no work! Camera should be set at inside my mapped interior small and there is saved player position when camera look at!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)