getLightColor
Cliente
Lee el color de una luz.
int|false getLightColor(light light)
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| light | light | La luz. |
Retorno
Tres números r, g, b, de 0 a 255, o false con un argumento incorrecto.
Ejemplo
local light = createPointLight(0, 0, 5, 10, 255, 128, 0)
local r, g, b = getLightColor(light)
outputDebugString(r .. ", " .. g .. ", " .. b)