getLightColor
Client
Reads a light's colour.
int|false getLightColor(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
Three numbers r, g, b, from 0 to 255, or false with a wrong argument.
Example
local light = createPointLight(0, 0, 5, 10, 255, 128, 0)
local r, g, b = getLightColor(light)
outputDebugString(r .. ", " .. g .. ", " .. b)