getLightRadius
Client
Reads a light's range.
float|false getLightRadius(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
The range in metres, or false with a wrong argument.
Example
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightRadius(light)) -- 15