M MY Multiplayer: Wiki
Lado
Tipo

getLightBarnDoor

Cliente

Lê as abas de uma luz rect.

float|false getLightBarnDoor(light light)

Parâmetros

NomeTipoDescrição
lightlightA 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.2
AtençãoSó para luzes rect. Numa luz point ou spot, registra um aviso que diz o tipo dela e devolve false.

Veja também