getLightSourceRadius
Client
Reads the size of a spot light's bulb.
float|false getLightSourceRadius(light light)
Parameters
| Name | Type | Description |
|---|---|---|
| light | light | The light. |
Returns
The bulb's radius in metres, or false with a wrong argument.
Example
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightSourceRadius(light)) -- 0.1NoteSpot lights only. On a point or rect light it logs a warning naming its type and returns
false.