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

Function

getSearchLightStartRadius

Server and clientLightsIdentical to MTA:SA

Returns the beam radius at the source (1 by default).

Syntax

float getSearchLightStartRadius(element theLight)

Arguments

theLightelement
The searchlight.

Returns

Radius in metres.

Example

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

See also