getLightType
Cliente
Dice el tipo de una luz.
string|false getLightType(light light)
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| light | light | La luz. |
Retorno
"point", "spot" o "rect", o false con un argumento incorrecto.
Ejemplo
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightType(light)) -- spot