Hello.
Does somehone got an idea how to create lens Flares (in a simple way, without using Panels, but entitiy-sprites). I started something to test, but i can`t see anything :-(

ENTITY* lens_flare1 =
{
layer = 25;
type = "sun1.tga";
flags = PASSABLE | BRIGHT | TRANSLUCENT | NOFOG;// visible on screen from the start
view = camera; // same camera parameters as the default view
}


function place_sun(){
me = lens_flare1;
set(my, PASSABLE |SHOW| BRIGHT );// visible on screen from the start
vec_set(my.x,player.x);

VECTOR sstemp;
wait(10);
while(1){
set(lens_flare1,SHOW);
vec_set(lens_flare1.x,player.x); // put me on the Player Position for test
/*
vec_set(sstemp,player.x);//sun_pos
if (vec_to_screen(sstemp,camera) != NULL) // if sun position visible at screen
{
//lens_flare1.SHOW = ON;
set(my,SHOW);vec_set(my.x,player.x); // defined entity
sstemp.z = 200; // temp contains the sun screen position, give 200 quants depth
vec_set(my.x,sstemp.x);
rel_for_screen(my.x,camera); // now the lens flare is at the sun position
}*/
wait(1);
}
}


// AFTER LEVEL_LOAD i add These lines:
set(camera,SHOW);
place_sun();

But still no Flare. HELP!