getLayer: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=getLayer
|name=getLayer
|version=1.3b48
|description=Returns the [[Map:map layer{{!}}map layer]] that the [[Token:Current Token{{!}}Current Token]] is on.
|description=Returns the [[Map:map layer{{!}}map layer]] that the [[Token:Current Token{{!}}Current Token]] is on.


Line 11: Line 12:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: layerName = getLayer()]
getLayer()
</source>
</source>
}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 12:07, 10 March 2009

getLayer() Function

Introduced in version 1.3b48
Returns the map layer that the Current Token is on.

The map layer is one of:

  • TOKEN
  • BACKGROUND
  • GM
  • OBJECT

Usage

getLayer()