SA-MP Forums Archive
Is Object in Area - 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: Is Object in Area (/showthread.php?tid=621733)



Is Object in Area - MerryDeer - 14.11.2016

Hi,

How to check if all object parts is in area? like i'am checking like IsPlayerInArea, but objects are different forms, it's house furnuture system.


Re: Is Object in Area - Amads - 14.11.2016

You can use https://sampwiki.blast.hk/wiki/GetObjectPos and check if X and Y are less/more than your choosen coords.


Re: Is Object in Area - PrO.GameR - 14.11.2016

Is it possible? Yes, is it premade for you to use? (as you always expect) No.
Use ColAndreas' object sizes and streamer's IsLineInArea and IsPointInArea to create one.