- Documentation
- Server functions
- setSearchLightEndRadius
Function
setSearchLightEndRadius
Sets the radius of the light spot at the beam's end (0-255 m); larger gives a wider cone.
Syntax
bool setSearchLightEndRadius(element theLight, float radius)Arguments
theLightelement- The searchlight.
radiusfloat- Radius in metres.
Returns
true on success.
Example
local light = createSearchLight(0, 0, 30, 0, 10, 0)
setSearchLightEndRadius(light, 4)