Difference between revisions of "Legacy:Functions/Map/Zones"
From Spherical
< Legacy:Functions | Map
(created) |
(No difference)
|
Latest revision as of 23:37, 1 June 2013
Zones
- AreZonesAt(x, y, layer): Check if there are any zones at (x, y) on layer.
- ExecuteZones(x, y, layer): Run all scripts for zones that (x, y) on layer is in.
- GetNumZones(): Get the number of zones on the current map.
For each zone
- GetCurrentZone(): Get the current zone index in a zone script.
- ExecuteZoneScript(zone): Execute the script of zone.
Zone position
- GetZoneX(zone): Get the X coordinate of zone on the map.
- GetZoneY(zone): Get the Y coordinate of zone on the map.
- GetZoneWidth(zone): Get the pixel width of zone.
- GetZoneHeight(zone): Get the pixel height of zone.
- GetZoneLayer(zone): Get the map layer index of zone.
- SetZoneLayer(zone, layer): Sets the map layer of zone to layer.