setLight: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Added version.) |
mNo edit summary |
||
Line 2: | Line 2: | ||
|name=setLight | |name=setLight | ||
|version=1.3b48 | |version=1.3b48 | ||
|description | |description= | ||
Sets the [[Map:light source|light source]]s of the [[Token:Current Token|Current Token]]. If the value is 0 then the [[Map:light source|light source]] is turned off otherwise it is turned on. | Sets the [[Map:light source|light source]]s of the [[Token:Current Token|Current Token]]. If the value is 0 then the [[Map:light source|light source]] is turned off; otherwise, it is turned on. | ||
|usage= | |usage= |
Revision as of 03:52, 1 March 2019
setLight() Function
• Introduced in version 1.3b48
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
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").
Example
[h: setLight("D20", "Candle - 5", 1)]