M MY Multiplayer: Wiki
Side
Kind

getLightSourceRadius

Client

Reads the size of a spot light's bulb.

float|false getLightSourceRadius(light light)

Parameters

NameTypeDescription
lightlightThe 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.1
NoteSpot lights only. On a point or rect light it logs a warning naming its type and returns false.

See also