Camera Positsion
#1

Code:
Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1742.8436,-1862.3859,13.5764);
SetPlayerCameraPos(playerid, 1743.2014,-1858.4879,13.4141);
SetPlayerCameraLookAt(playerid, 1743.2014,-1858.4879,13.4141);
return 1;
}

and if I'm going to play then the camera will pay the hotel instead of unity unity party store. Please help

I USE A TRANSLATOR !!
Reply
#2

SetPlayerCameraPos has same the coordinates as SetPlayerCameraLookAt..
Change SetPlayerCameraLookAt coordinates to SetPlayerPos coordinates.

Код:
public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerPos(playerid, 1742.8436,-1862.3859,13.5764);
  SetPlayerCameraPos(playerid, 1743.2014,-1858.4879,13.4141);
  SetPlayerCameraLookAt(playerid, 1742.8436,-1862.3859,13.5764);
  return 1;
}
Reply
#3

Thank you very much !!

Butt... Wathc this ...
Reply
#4

Im not sure what you want me to see in that image, but my guess is that you have wrong facing angle..
If you want to make player face north, add SetPlayerFacingAngle(playerid, 0.0); under OnPlayerRequestClass.
Код:
public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerPos(playerid, 1742.8436,-1862.3859,13.5764);
  SetPlayerFacingAngle(playerid, 0.0);
  SetPlayerCameraPos(playerid, 1743.2014,-1858.4879,13.4141);
  SetPlayerCameraLookAt(playerid, 1742.8436,-1862.3859,13.5764);
  return 1;
}
Reply
#5

Thankss !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)