- Documentation
- Server functions
- setLightColor
Function
setLightColor
Changes the light colour.
Syntax
bool setLightColor(element theLight, int r, int g, int b)Arguments
theLightelement- The light.
rint- Red 0-255.
gint- Green 0-255.
bint- Blue 0-255.
Returns
true on success.
Example
local lamp = createLight(0, 0, 0, 5)
setLightColor(lamp, 0, 0, 255)