Detect if player is in front of the object
#1

So, I want to know how can I detect if a player has the camera look at a object, like, you are using photo camera (weapon 43) and you are looking with the camera at object 1247 (police star).

How can I detect that?
Reply
#2

Maybe you can check it like:

PHP код:
if(pPosX == objPosX
{
     
//do something here

or simply use IsPlayerInRangeOfPoint.
Reply
#3

done
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)