setLight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function setLight== Sets the Map:light sources of the Current Token. If the value is 0 then the Map:light source is turned off otherwise it is turned o...)
 
No edit summary
Line 14: Line 14:
===Examples===
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setLightSource("D20", "Candle - 5", 1)]
[h: setLight("D20", "Candle - 5", 1)]
</source>
</source>

Revision as of 14:27, 13 December 2008

Function setLight

Sets the light sources of the Current Token. If the value is 0 then the light source is turned off otherwise it is turned on.

Usage

[h: lights = setLight(type, name, value)]

Where


Examples

[h: setLight("D20", "Candle - 5", 1)]