ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getZoneBounds

Function

getZoneBounds

Server and clientWorldTrilogy Hub only

Returns the box enclosing a whole zone (all its parts) with the given name: minimum and maximum coordinates. When there is no such district it looks for a region.

Syntax

float... getZoneBounds(string name)

Arguments

namestring
Zone or region name.

Returns

x1, y1, z1, x2, y2, z2, or false.

Example

local x1, y1, z1, x2, y2, z2 = getZoneBounds("Idlewood")
outputDebugString(("Idlewood: %d..%d, %d..%d"):format(x1, x2, y1, y2))

See also