- Documentation
- Server functions
- setSearchLightStartRadius
Function
setSearchLightStartRadius
Sets the beam radius at the source (0-255 m).
Syntax
bool setSearchLightStartRadius(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)
setSearchLightStartRadius(light, 0.5)
Notes
The light's shape is mainly set by the end radius.