- Documentation
- Shared functions
- getSearchLightEndPosition
Function
getSearchLightEndPosition
Returns the point the searchlight shines at.
Syntax
float, float, float getSearchLightEndPosition(element theLight)Arguments
theLightelement- The searchlight.
Returns
x, y, z, or false.
Example
local light = createSearchLight(0, 0, 30, 0, 10, 0)
local x, y, z = getSearchLightEndPosition(light)