setTokenSnapToGrid

From RPTools Wiki
Revision as of 18:01, 15 December 2017 by Jagged (talk | contribs)
Jump to navigation Jump to search

setTokenSnapToGrid() Function

Introduced in version 1.4
Sets the "snap to" behaviour for the Current Token or a specified token.

Usage

setTokenSnapToGrid(snap)
setTokenSnapToGrid(snap, id)

Parameters

  • snap - A value true(1) or false(0).
  • id - The id of the token to set its snap behaviour.

Example

[h: setTokenSnapToGrid(0)]
[h: setTokenSnapToGrid(1, currentToken())]

|also= isSnapToGrid }}