SA-MP Forums Archive
A camera position - 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)
+--- Thread: A camera position (/showthread.php?tid=612440)



A camera position - FilesMAker - 17.07.2016

I'm looking for a person that may know the exact "camera position" and exact "camera look at position" of SAMP's welcome screen "Spectator Bridge". Anyone ??
Thanks !!


Re: A camera position - Jack_Leslie - 18.07.2016

Just give yourself a Jetpack or something, and look at the bridge.
Then use the following functions to get the position:

GetPlayerCameraFrontVector
GetPlayerCameraPos


Re: A camera position - FilesMAker - 18.07.2016

Yeah this is a solution but I will never get the exact coordinations !

Anyway after a hacking session using "Cheat Engine", and using some of my old technics :3 I finally got the XYZ position that are (1092.624023, -2035.651367, 89.81851959).

Now I'll fight to get the front vector, once I do I ll share it so anyone can use it if needed !!

And thank for your reply


Re: A camera position - AbyssMorgan - 19.07.2016

Use:
PHP код:
GetPointInFront3D(Float:x,Float:y,Float:z,Float:rx,Float:rz,Float:radius,&Float:tx,&Float:ty,&Float:tz); 
https://sampforum.blast.hk/showthread.php?tid=591010