I have this line in my lensflare script to fade on/off the flares when the camera turns towards/away from the sun:
Code:
IF (camera.pan > sun_angle.pan + 25) || (camera.pan < sun_angle.pan - 25) || (camera.tilt < sun_angle.tilt - 20) || (camera.tilt > sun_angle.tilt + 20) {
IF (flare1_ent.alpha > 0) { flare1_ent.alpha -= flare_fadespeed * time_step; } ELSE { flare1_ent.alpha = 0;}}
Now the problem is: When I pan with my camera 360', the flares won't be visible anymore

How can I fix this behaviour...probable needs some vector operation wich I don't know

Thx!