setLight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=setLight
|name=setLight
|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.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: lights = setLight(type, name, value)]
setLight(type, name, value)
</source>
</source>
Where  
Where  

Revision as of 12:40, 10 March 2009

setLight() Function

Introduced in version 1.3b48

Usage

setLight(type, name, value)

Where

Example

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