setLayer

From RPTools Wiki
Revision as of 03:16, 31 March 2009 by Verisimilar (talk | contribs) (Updated with recent version changes.)
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Examples of usage.

setLayer() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.3b48
Sets the Map Layer that a Token is on.

The Map Layer is one of:

  • TOKEN
  • GM also known as Hidden
  • OBJECT
  • BACKGROUND

Usage

setLayer(layer)
setLayer(layer, id)

Parameters

  • layer - The layer to move the Token to.
  • id - The token id of the token which has its layer set, defaults to the Current Token.


See Also

Version Changes

  • 1.3b51 - Added id parameter option.