getLightFalloff
Client
Reads a light's fade exponent.
float|false getLightFalloff(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
The exponent, from 0.1 to 32, or false with a wrong argument.
Example
local light = createPointLight(0, 0, 5)
outputDebugString(getLightFalloff(light)) -- 4