getLightRadius
Cliente
Lê o alcance de uma luz.
float|false getLightRadius(light light)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| light | light | A luz. |
Retorno
O alcance em metros, ou false com um argumento errado.
Exemplo
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightRadius(light)) -- 15