getLayer

From RPTools Wiki
Jump to navigation Jump to search

Function getLayer

Returns the map layer that the current token is on. The map layer is one of:

  • TOKEN
  • BACKGROUND
  • GM
  • OBJECT

Usage

[h: layerName = getLayer()]