getLightBarnDoor
Cliente
Lê as abas de uma luz rect.
float|false getLightBarnDoor(light light)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| light | light | A luz. |
Retorno
Dois números: o ângulo em graus e o comprimento em metros, ou false com um argumento errado.
Exemplo
local light = createRectLight(0, 0, 5, 0, 0, -1)
local angle, length = getLightBarnDoor(light)
outputDebugString(angle .. " " .. length) -- 88 0.2AtençãoSó para luzes rect. Numa luz point ou spot, registra um aviso que diz o tipo dela e devolve
false.