SA-MP Forums Archive
IsPointInDynamicArea - 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: IsPointInDynamicArea (/showthread.php?tid=616826)



IsPointInDynamicArea - MerryDeer - 11.09.2016

Hi,

If i have create polygon it don't have z coordinate, so IsPointInDynamicArea z coordinate i can write any number?


Re: IsPointInDynamicArea - Threshold - 11.09.2016

It depends on what values you've put in CreateDynamicPolygon.

Код:
CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);
Your 'minz' and 'maxz' are respectively your minimum and maximum Z coordinate. If your z coordinate falls out of range of those two values, IsPointInDynamicArea will return false.