SA-MP Forums Archive
Can help me make a custom GetPlayerCameraFrontVector? - 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: Can help me make a custom GetPlayerCameraFrontVector? (/showthread.php?tid=166201)



Can help me make a custom GetPlayerCameraFrontVector? - VictorMartinez - 07.08.2010

Ok GetPlayerCameraFrontVector(playerid,Float,Float: y,Float:z); always gets the coordinates of where the player is aiming at exactly 1 meter from him. I'm not good at math so can someone make a special GetPlayerCameraFrontVector(playerid,Float,Float: y,Float:z, distance); that will get the coordinates of where a player is aiming at from any distance away from the player. That way I know the coordinates of where he is aiming at 5 meters away from him, or 10, etc.

Thanks in advance


Re: Can help me make a custom GetPlayerCameraFrontVector? - Mystique - 07.08.2010

Ask in the script request thread.

http://forum.sa-mp.com/showthread.ph...script+request


Re: Can help me make a custom GetPlayerCameraFrontVector? - VictorMartinez - 07.08.2010

ok I posted something there but if anyone could reply I'd appreciate it


Re: Can help me make a custom GetPlayerCameraFrontVector? - VictorMartinez - 07.08.2010

ok I think I have it. Once you get the coords of 1 meter in front of him just multiply each coord by the distance you want and you'll get 3 new coords (a new x,y, and z) and that's your new point