ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setSearchLightEndRadius

Function

setSearchLightEndRadius

ServerLightsIdentical to MTA:SA

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)

See also