RPTools

From MapToolDoc

clearLights

clearLights() Function

Introduced in version 1.3b48

Turns off all of the light sources for the Current Token.

Usage

  1. clearLights()

Examples

To turn off all of the light sources for the current token.

  1. [h: clearLights()]

To turn off all the lights sources on the map you could run the following script, note you will have to be the GM or run it as part of a trusted macro.

  1. Ok Kids lights out!
  2. [h,foreach(tok, getTokens()), code: { [token(tok): clearLights()]}]