ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getSearchLightEndRadius

Function

getSearchLightEndRadius

Server and clientLightsIdentical to MTA:SA

Returns the radius of the light spot at the beam's end (10 by default).

Syntax

float getSearchLightEndRadius(element theLight)

Arguments

theLightelement
The searchlight.

Returns

Radius in metres.

Example

local light = createSearchLight(0, 0, 30, 0, 10, 0)
outputDebugString(getSearchLightEndRadius(light))

See also