setLight: Difference between revisions
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: | [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
- type is the type of light source (e.g. "Generic" or "D20").
- name is the name of the Light Source to change (e.g. "Candle - 5").
Examples
[h: setLight("D20", "Candle - 5", 1)]