getLightIntensity
Client
Reads a light's brightness.
float|false getLightIntensity(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
The brightness multiplier, or false with a wrong argument.
Example
local light = createPointLight(0, 0, 5)
outputDebugString(getLightIntensity(light)) -- 1