ExecuteZoneScript
From Spheriki
Run the script of a zone.
Contents |
Usage
- zone number, non-negative. The index of the map zone to run the script of.
Examples
Here's how we can call the script of every single zone on the currently loaded map:
for (var i = 0, z = GetNumZones(); i < z; ++i) ExecuteZoneScript(i);
Notes
- The behaviour of this function outside of the map engine is undefined.
See also
- GetNumZones()
- MapEngine()
- Every other zone function on the functions page.