Where is player aiming
#1

How I check where is player aiming with gun ?
Reply
#2

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

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)