About lights

I’m working on some light effects now,but i have no idea about how to recognize the lights in a map,in lens_flare,the author uses

	local sun = util.GetSunInfo()

i can’t find any commands about light,NEED HELP,THANKS!

Afaik all “lights” are compiled into the actual map and can’t really be located, you can find entities like the light beams.

Lights only exist in the map if the mapper has given them a name, if he hasn’t, they’re baked in to the map and there’s no way to access them.

Thanks a lot,dudes.