M MY Multiplayer: Wiki
Side
Kind

setLightSourceRadius

Client

Changes the size of a spot light's bulb. A larger bulb makes highlights and shadows softer.

bool setLightSourceRadius(light light, float sourceRadius)

Parameters

NameTypeDescription
lightlightThe light.
sourceRadiusfloatRadius of the bulb in metres, from 0 to the light's range.

Returns

true if it changed. With a wrong argument it logs a warning and returns false.

Example

local light = createSpotLight(2495.1, -1687.4, 20, 0, 0, -1, 25)
setLightSourceRadius(light, 0.5)
NoteSpot lights only. On a point or rect light it logs a warning naming its type and returns false.

See also