SA-MP Forums Archive
Where is player aiming - 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: Where is player aiming (/showthread.php?tid=627530)



Where is player aiming - Cyber123 - 29.01.2017

How I check where is player aiming with gun ?


Re: Where is player aiming - Eoussama - 29.01.2017

Check if they are pressing the AIMING_KEY while holding a valid firearm ID


Re: Where is player aiming - Cyber123 - 29.01.2017

I need coordinates where is player aiming when he use for example deagle or m4 or ak47


Re: Where is player aiming - AndreiWow - 29.01.2017

You can use this to see if they are aiming at another player.

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



And this should be for coords:
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector


Re: Where is player aiming - Cyber123 - 29.01.2017

GetPlayerCameraFrontVector gives me position in front of player not where is player aiming


Re: Where is player aiming - AndreiWow - 29.01.2017

Quote:
Originally Posted by Cyber123
Посмотреть сообщение
GetPlayerCameraFrontVector gives me position in front of player not where is player aiming
If you read the wiki it will say
This function will return the current direction of player's aiming in 3-D space, the coords are relative to the camera position, see GetPlayerCameraPos.


Re: Where is player aiming - Cyber123 - 29.01.2017

https://www.youtube.com/watch?v=aSabQWqQBkI I want to make something like that