M MY Multiplayer: Wiki
Lado
Tipo

getLightColor

Cliente

Lee el color de una luz.

int|false getLightColor(light light)

Parámetros

NombreTipoDescripción
lightlightLa 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)

Ver también