getLightColor
Cliente
Lê a cor de uma luz.
int|false getLightColor(light light)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| light | light | A luz. |
Retorno
Três números r, g, b, de 0 a 255, ou false com um argumento errado.
Exemplo
local light = createPointLight(0, 0, 5, 10, 255, 128, 0)
local r, g, b = getLightColor(light)
outputDebugString(r .. ", " .. g .. ", " .. b)