SA-MP Forums Archive
how can i get camera object id - 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: how can i get camera object id (/showthread.php?tid=663498)



how can i get camera object id - rockys - 02.02.2019

new test = createobject(xxxx);
if you take photo on test sendclientmessage gg

like that: if(photo == test) scm gg

how can i do that


Re: how can i get camera object id - Type-R - 03.02.2019

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


Re: how can i get camera object id - rockys - 04.02.2019

i want to make like this
https://www.youtube.com/watch?v=gWY-qq0B-vg 11:54
i want to verify if you take photo on object