ow yeah right =/ damn, I guess JCL needs to add a function to retrieve all the lights then to support deferred rendering tongue

EDIT: but hmm, I wonder if ent_next returns lights placed by WED. Cause afaik only ENTITY* can cast lights through the LIGHT flag if it's set, and I guess that the lights that are placed by WED are entities created by the engine when it's initialized. So maybe you should try ent_next and see if it returns an ENTITY* on an empty level with only WED placed lights, if it does, I bet it has the LIGHT flag set which let's you know it's a light

Last edited by Enduriel; 12/25/09 00:10.