ExecuteZones

From Spheriki

Jump to: navigation, search

Run the zone scripts for all zones at a given map location.


Contents

Usage

ExecuteZones(x, y, layer);
  • x number. The map pixel X coordinate of the location.
  • y number. The map pixel Y coordinate of the location.
  • layer number, non-negative. The map layer of the location.


Examples

See the example for AreZonesAt().


Notes

  • At the time of writing, the layer parameter is ignored, though it must still be valid.
  • The location you give to this function is not necessarily the location of a zone, but rather a point which may be within a zone.
  • If there are multiple zones covering the map location point, they will all be executed. The order of execution is undefined, so avoid writing zone scripts that rely on being run in a fixed order.


See also

Personal tools