setLight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
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

Example

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