I’ve got a problem with dlights that i just cant figure out. I have these physbullets that are fired from either an ent or a swep, if the bullet is a tracer it makes neat tracer effects and emits light through dlight, however every now and then when a tracer bullet is fired a dlight will stay there for a random ammount of time (See video).
Anyone know whats causing this or how to fix it?
The Function creating the light called every think
function ENT:MakeLight() if !IsValid(self) or !self.valid then return end if CLIENT then local dlight = DynamicLight( self:EntIndex() ) if ( dlight ) then local c = self:GetColor() dlight.Pos = self:GetPos() dlight.r = c.r dlight.g = c.g dlight.b = c.b dlight.minlight = 0.001 dlight.Brightness = 0.16 dlight.Decay = 2000 dlight.Size = 512 dlight.DieTime = CurTime() + 0.5 end end end