ExecuteZoneScript

From Spheriki

Jump to: navigation, search

Run the script of a zone.


Contents

Usage

ExecuteZoneScript(zone);
  • 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

Personal tools