setLight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function setLight==
{{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===
|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=
===Examples===
<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

Example

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