SetZoneLayer

From Spheriki

Jump to: navigation, search

Change the map layer of a zone.


Contents

Usage

SetZoneLayer(zone, layer);
  • zone number, non-negative. Index of the zone to change the layer of.
  • layer number, non-negative. Index of the map layer to put the zone on.


Examples

To put the fifth zone (zone index 4) on the eighth layer (layer index 7):

SetZoneLayer(4, 7);

That's it!


Notes

  • The behaviour of this function outside of the map engine is undefined.
  • zone is valid between 0 and GetNumZones() - 1 inclusive.
  • layer is valid between 0 and GetNumLayers() - 1 inclusive.


See also

Personal tools