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

Function

getLightDirection

ServerLightsIdentical to MTA:SA

Returns the spot light direction.

Syntax

float, float, float getLightDirection(element theLight)

Arguments

theLightelement
The light.

Returns

x, y, z, or false.

Example

local lamp = createLight(1, 0, 0, 5, 5, 255, 255, 255, 0, 0, -1)
local dx, dy, dz = getLightDirection(lamp)

See also