SA-MP Forums Archive
Player on top of an object - 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: Player on top of an object (/showthread.php?tid=633002)



Player on top of an object - OwlIT - 23.04.2017

Is there a method to efficiently detect if a player is on top of an object? I mean IsPlayerInRangeOfPoint can cause a lot of problems, if there are a lot of objects around the player.


Re: Player on top of an object - edyun - 23.04.2017

You could try and use ColAndreas ( https://sampforum.blast.hk/showthread.php?tid=560218 ) , there was a dude trying to do a FlashBang system on the same principle,the IsPlayerInRangeOfPoint can work if the thing you want to make is not Dynamic and you just want it set to a certain point otherwise use the ColAndreas.