ExecuteZones
From Spheriki
Run the zone scripts for all zones at a given map location.
Contents |
[edit]
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.
[edit]
Examples
See the example for AreZonesAt().
[edit]
Notes
- At the time of writing, the
layerparameter 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.
[edit]
See also
- AreZonesAt()
- MapEngine()
- Every other zone function in the Functions page.

