getLightType
Client
Tells a light's type.
string|false getLightType(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
"point", "spot" or "rect", or false with a wrong argument.
Example
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightType(light)) -- spot