Skip to content
ben-mkiv edited this page Jun 7, 2021 · 1 revision

OC Lua methods

setColor(integer:color) -- set's the light color, e.g.: you can use 0xFF0000 to make it red) 

setBrightness(integer:brightness) -- set's the brightness of the light (value range 0-15)

getColorString():string -- returns the current color as hexadecimal string, the string can be converted to int with tonumber(value, 16)

getBrightness():int -- returns the current brightness value
Clone this wiki locally