- Documentation
- Server functions
- getLightDirection
Function
getLightDirection
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)