Can help me make a custom GetPlayerCameraFrontVector?
#1

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
Reply
#2

Ask in the script request thread.

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)