isLightEnabled
Client
Tells whether a light is on.
bool isLightEnabled(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
true if the light is on. false if it is off, or with a wrong argument.
Example
local light = createPointLight(0, 0, 5)
setLightEnabled(light, false)
outputDebugString(tostring(isLightEnabled(light))) -- false