how can i get camera object id
#2

Camera is not an object, it is a weapon ID? So i understand you are trying to record when taking a picture.

What i would probably do is just check the keys if Aiming of the camera is pressed (RMB) and then you take a picture by pressing also (LMB), this code would probably go on callback: OnPlayerKeyStateChange (More info at https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange ), available keys are here: https://sampwiki.blast.hk/wiki/Keys .

After that i would probably do some math, with the seeing if the player is looking visually at the object. Probably can find more info here: https://sampforum.blast.hk/showthread.php?tid=181218

Sorry, but this is probably the best i can assist you and try to point you in the right direction
Reply


Messages In This Thread
how can i get camera object id - by rockys - 02.02.2019, 21:10
Re: how can i get camera object id - by Type-R - 03.02.2019, 13:55
Re: how can i get camera object id - by rockys - 04.02.2019, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)