IsPointInZone
Whether a point lies inside a zone.
Syntax
Section titled “Syntax”IsPointInZone(id, x, y [, z])| Parameter | Type | |
|---|---|---|
id |
number | the zone |
x |
number | metres |
y |
number | metres |
z |
number | metres (0 without) (optional) |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”local x, y, z = GetEntityPos(horse)if IsPointInZone(stable, x, y, z) then Log("the horse is home") endSee also
Section titled “See also”IsPlayerInZone · GetZoneInfo · the Zones group of the index
