setTokenWidth

From MapToolDoc
Jump to: navigation, search

setTokenWidth() Function

Introduced in version 1.3b91

This function set the token's image width in pixels (boundary size).

Usage

  1. setTokenWidth(size, id)

Parameters

  • size - grid size of the token
  • id - The token id of the token to set its width

Example

  1. [r: setTokenWidth(300, "Dragon")]
  2. [r: setTokenHeight(150, "Dragon")]

See Also

setTokenHeight(), getTokenHeight(), getTokenWidth()