getLightSize
Cliente
Lee el ancho y el alto de una luz rect.
float|false getLightSize(light light)
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| light | light | La luz. |
Retorno
Dos números: el ancho y el alto en metros, o false con un argumento incorrecto.
Ejemplo
local light = createRectLight(0, 0, 5, 0, -1, 0, 8, 255, 255, 255, 2, 0.5)
local width, height = getLightSize(light)
outputDebugString(width .. " x " .. height)AtenciónSolo para luces rect. En una luz point o spot, registra un aviso que dice su tipo y devuelve
false.