GetNumZones
From Spheriki
Get the number of zones on the map.
Contents |
Usage
- number is returned, which is the number of map zones on the current map.
Examples
To loop through all zones in a map:
for (var i = 0, zone_count = GetNumZones(); i < zone_count; ++i) {
// Do stuff for zone i
}
Notes
- The behaviour of this function outside of running the map engine is undefined.