Summary
Methods
Draw()client
Draws the light's model.
Initialize()shared
Sets the Combine light model and its physics.
OnRemove()server
Does nothing.
SpawnFunction(ply, tr)server
Spawns a union light 16 units off the surface the player is looking at.
Think()shared
Does nothing on the server.
Use()server
Does nothing; the light cannot be used.
Methods
ENT:Draw()
client gamemodes/cwhl2rp/plugins/unionlight/plugin/entities/entities/cw_unionlight/cl_init.lua:11Draws the light's model.
ENT:Initialize()
shared gamemodes/cwhl2rp/plugins/unionlight/plugin/entities/entities/cw_unionlight/init.lua:10On the server
Sets the Combine light model and its physics.
On the client
Does nothing on the client.
Defined in
ENT:OnRemove()
server gamemodes/cwhl2rp/plugins/unionlight/plugin/entities/entities/cw_unionlight/init.lua:34Does nothing.
ENT:SpawnFunction(ply, tr)
server gamemodes/cwhl2rp/plugins/unionlight/plugin/entities/entities/cw_unionlight/init.lua:22Spawns a union light 16 units off the surface the player is looking at.
Parameters
- ply
- tr
Returns
- Entity The new light, or
nilwhen the trace hit nothing
ENT:Think()
shared gamemodes/cwhl2rp/plugins/unionlight/plugin/entities/entities/cw_unionlight/init.lua:38On the server
Does nothing on the server.
On the client
Keeps a pale blue dynamic light with an 800 unit radius at the light's position.
Defined in
ENT:Use()
server gamemodes/cwhl2rp/plugins/unionlight/plugin/entities/entities/cw_unionlight/init.lua:42Does nothing; the light cannot be used.