SA-MP Forums Archive
When player touches a laser - 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: When player touches a laser (/showthread.php?tid=604699)



When player touches a laser - NeXoR - 08.04.2016

Well i'm not sure if its possible, thats why im asking you dear SAMP Experts
Is there a way to script that if a player touches a laser (from a laser object)
then something happenes ?


Re: When player touches a laser - oMa37 - 08.04.2016

As far as i know, You can script that.


Re: When player touches a laser - jeffery30162 - 08.04.2016

yes, lets say the laser is facing the positive x value on the map and the actual laser is 10 units long. so get the lasers x position.

If the player is within 10 units away from the laser and has the same X cords, the player is touching the laser