GetAreasAt
The names of the areas holding a point.
Syntax
Section titled “Syntax”GetAreasAt(x, y, z)| Parameter | Type | |
|---|---|---|
x |
number | metres |
y |
number | metres |
z |
number | metres |
Returns
Section titled “Returns”table - the names, sorted (the areas whose layer is on)
Example
Section titled “Example”local x, y, z = GetPlayerPos(pid)if #GetAreasAt(x, y, z + 10) > 0 then SendClientMessage(pid, COLOR_RED, "No flying over the town.") endSee also
Section titled “See also”GetPlayerAreas · the The map’s areas group of the index
