I think it's just a matter of ent_creating an entity and setting its lightrange > 0 (big enough so that it is within range of the object you want lit).