03.02.2019, 13:55
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
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