- Documentation
- Server functions
- setSearchLightEndPosition
Function
setSearchLightEndPosition
Points the searchlight at a new spot.
Syntax
bool setSearchLightEndPosition(element theLight, float x, float y, float z)Arguments
theLightelement- The searchlight.
xfloat- Target X.
yfloat- Target Y.
zfloat- Target Z.
Returns
true on success.
Example
local light = createSearchLight(0, 0, 30, 0, 10, 0)
setSearchLightEndPosition(light, 10, 10, 0)
See also
createSearchLightCreates a searchlight beam: a real Unreal spot light shining from a start point to an end point, like a police helicopter searchlight or stadium lights. The cone width comes from the end radius and the distance; brightness adjusts itself to the beam length. Everyone in the same interior and dimension sees it.getSearchLightEndPositionReturns the point the searchlight shines at.