setLight: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=setLight | |||
|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= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: lights = setLight(type, name, value)] | [h: lights = setLight(type, name, value)] | ||
Line 11: | Line 12: | ||
* name is the name of the [[LightSource:Light Source|Light Source]] to change (e.g. "Candle - 5"). | * name is the name of the [[LightSource:Light Source|Light Source]] to change (e.g. "Candle - 5"). | ||
|example= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: setLight("D20", "Candle - 5", 1)] | [h: setLight("D20", "Candle - 5", 1)] | ||
</source> | </source> | ||
}} | |||
[[Category:Light Function]] |
Revision as of 04:14, 9 March 2009
setLight() Function
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").
Example
[h: setLight("D20", "Candle - 5", 1)]