Camera Positsion - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Camera Positsion (
/showthread.php?tid=109787)
Camera Positsion -
Renn47 - 22.11.2009
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 !!
Re: Camera Positsion -
M4S7ERMIND - 22.11.2009
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;
}
Re: Camera Positsion -
Renn47 - 22.11.2009
Thank you very much !!
Butt... Wathc this ...
Re: Camera Positsion -
M4S7ERMIND - 22.11.2009
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;
}
Re: Camera Positsion -
Renn47 - 22.11.2009
Thankss !!!