SA-MP Forums Archive
Facing camera screen - 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: Facing camera screen (/showthread.php?tid=166948)



Facing camera screen - Rolyy - 10.08.2010

Is there any command that faces your gaming camera screen?
Something like in SetPlayerFacingAngle but then as camera..
I dont want the camera to but stuck, or not to set the camera location..
Not SetPlayerCameraPos and not SetPlayerCameraLookAt

Just something like in SetPlayerFacingAngle but then as camera..


Re: Facing camera screen - Rolyy - 10.08.2010

Bump, 3rd page.


Re: Facing camera screen - Rolyy - 11.08.2010

Bump, 12 hours later.


Re: Facing camera screen - gamer931215 - 11.08.2010

What do you mean exactly ? You want the camera to look at an position ?

If thats the case:

Use SetPlayerCameraPos to set the camera position, and use this to set the angle:
SetPlayerCameraLookAt(playerid, x,y,z);

And else explain a little more please.


Re: Facing camera screen - MadeMan - 11.08.2010

https://sampwiki.blast.hk/wiki/GetPlayerCameraPos

https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector

https://sampwiki.blast.hk/wiki/GetPlayerCameraUpVector


Re: Facing camera screen - Rolyy - 11.08.2010

Something like that.. but I don't what that the camera sticks on the same position..
I just want it to face as the character.
Lets say playerid faces angle 175.0
Then I want the game screen/camera with the angle also 175.0 THEN they should be able to rotate the gamescreen / camera therselfs after.


Re: Facing camera screen - MadeMan - 11.08.2010

Then use SetCameraBehindPlayer

https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer


Re: Facing camera screen - Rolyy - 11.08.2010

This what exactly what I was looking for in a long time thought, Thank you very much.
I really appreciate this.