getLightType
Cliente
Diz o tipo de uma luz.
string|false getLightType(light light)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| light | light | A luz. |
Retorno
"point", "spot" ou "rect", ou false com um argumento errado.
Exemplo
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightType(light)) -- spot