SA-MP Forums Archive
GetPlayerCameraFrontVector/GetPlayerCameraUpVector - 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: GetPlayerCameraFrontVector/GetPlayerCameraUpVector (/showthread.php?tid=161239)



GetPlayerCameraFrontVector/GetPlayerCameraUpVector - marharth - 19.07.2010

Can someone post what they do, and what they could be used for?

What are the differences and could you also post a example?


Re: GetPlayerCameraFrontVector/GetPlayerCameraUpVector - [DK]JaloNik - 19.07.2010

subscribing to topic.. lulz.


Re: GetPlayerCameraFrontVector/GetPlayerCameraUpVector - Mauzen - 19.07.2010

Im not 100% sure about UpVector, but GetPlayerCameraFrontVector returns a normal vector, representing the direction, the player looks at.
Meaning, If you get the players CameraPos, and add the x-fold of the three components of the vector to the coords, you get the Point in the middle of the players screen in x m distance.

The UpVector might be the vector representing the way between playercamera and player, but I have not worked much with this yet.


Re: GetPlayerCameraFrontVector/GetPlayerCameraUpVector - marharth - 19.07.2010

Thanks


Re: GetPlayerCameraFrontVector/GetPlayerCameraUpVector - nuriel8833 - 19.07.2010

Have you heard of something that called wiki samp?


Re: GetPlayerCameraFrontVector/GetPlayerCameraUpVector - Mauzen - 19.07.2010

In the wiki there is no information about these functions, only the syntax. Maybe ill add something on occasion.