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

Function

getZoneCount

Server and clientWorldTrilogy Hub only

Returns the number of zone (district) rectangles and region rectangles in the map data.

Syntax

int, int getZoneCount()

Returns

Number of zone rectangles and region rectangles.

Example

local zones, cities = getZoneCount()
outputDebugString(zones .. " stref, " .. cities .. " regionow")

See also