1. Post #1
    amkoc's Avatar
    January 2011
    562 Posts
    I can't seem to get it to work. Any help?

    local dlight = DynamicLight( self:EntIndex() )
    
    if ( dlight ) then
    local r, g, b, a = Color(255, 175, 0,100)
    	dlight.Pos = self:GetPos()
    	dlight.r = r
    	dlight.g = g
    	dlight.b = b
    	dlight.Brightness = 2
    	dlight.Decay = 1024 * 5
    	dlight.Size = 1024
    	dlight.DieTime = CurTime() + 1
    end
    

    (I just copied it from the gmod light entity)

  2. Post #2
    Gold Member
    leiftiger's Avatar
    November 2009
    272 Posts
    Where are you running the code?

  3. Post #3
    amkoc's Avatar
    January 2011
    562 Posts
    ENT:Think() on client, same as the gmod light entity