- Documentation
- Server functions
- getLightColor
Function
getLightColor
Returns the light colour.
Syntax
int, int, int getLightColor(element theLight)Arguments
theLightelement- The light.
Returns
r, g, b, or false.
Example
local lamp = createLight(0, 0, 0, 5, 5, 255, 0, 0)
local r, g, b = getLightColor(lamp)