- Documentation
- Lights
Category
Lights
All Lua functions and events in the Lights category, on the server and the client.
Server functions 14
createCreates a light element: a point light (type 0, shines in all directions) or a spot light (type 1, with a direction), with a radius and colour.Light createCreates 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.Search Light createCreates a rope that a SWAT team rappels down from a helicopter. TheSWATRope ropeelement disappears by itself after the given time.getReturns the light colour.Light Color getReturns the spot light direction.Light Direction getReturns the light radius in metres (3 by default).Light Radius getReturns the light type: 0 point, 1 spot.Light Type setChanges the light colour.Light Color setChanges the spot light direction (a vector, e.g. 0, 0, -1 = down).Light Direction setChanges the light radius (0-255 m).Light Radius setPoints the searchlight at a new spot.Search Light End Position setSets the radius of the light spot at the beam's end (0-255 m); larger gives a wider cone.Search Light End Radius setMoves the searchlight beam's source (e.g. following a helicopter).Search Light Start Position setSets the beam radius at the source (0-255 m).Search Light Start Radius
Shared functions 4
getReturns the point the searchlight shines at.Search Light End Position getReturns the radius of the light spot at the beam's end (10 by default).Search Light End Radius getReturns the point the searchlight shines from.Search Light Start Position getReturns the beam radius at the source (1 by default).Search Light Start Radius