Detect if player took a picture of a certain thing - 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: Detect if player took a picture of a certain thing (
/showthread.php?tid=475109)
Detect if player took a picture of a certain thing -
Twizted - 11.11.2013
Is it possible to detect if a player took a photo of a certain object?
Re: Detect if player took a picture of a certain thing -
Misiur - 11.11.2013
Only at the moment of taking the picture - you have to get player front vector and check his line of sight.
Re: Detect if player took a picture of a certain thing -
Pottus - 11.11.2013
I don't think the camera has any aiming vector offsets so you would only have to do a simple line sphere collision check.
Re: Detect if player took a picture of a certain thing -
Twizted - 11.11.2013
How can I do that?