IsPointInPolygon - 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: IsPointInPolygon (
/showthread.php?tid=605010)
IsPointInPolygon -
ScIrUsna - 13.04.2016
Hi,
I found this function here:
http://forum.sa-mp.com/showpost.php?...postcount=1871
But i need also include Z coordinate.
Re: IsPointInPolygon -
Sew_Sumi - 13.04.2016
Incognitos streamer does polygons with z checks.
Re: IsPointInPolygon -
ScIrUsna - 13.04.2016
And how that function call?
Re: IsPointInPolygon -
Sew_Sumi - 13.04.2016
Make the polygon with
Код:
CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);
and checked if player is in by
Код:
IsPlayerInDynamicArea(playerid, STREAMER_TAG_AREA areaid, recheck = 0);
https://sampforum.blast.hk/showthread.php?tid=102865