just for the record, and use for other people;

here's the snippet i used and PM'd to iam_ufo...

Code:
if(plane)
{
	vec_set(temp.x, plane.x); 
	vec_sub(temp.x, my.x);
	vec_to_angle(movedirection.pan, temp.x);
	my.pan+=ang(movedirection.pan-my.pan)/110;
	my.tilt+=ang(movedirection.tilt-my.tilt)/110;
			
	if(vec_dist(plane.x, my.x) < 5000 && abs(ang(movedirection.pan-my.pan)) < 30)
	{
		if(bullet_down <= 0){ ent_playsound(my, bullet_fire, 1000); enemy_bullet_shoot(); bullet_down = 10; }
		bullet_down -= 1;
	}
}


actual check if its in view is in this piece of code:
Code:
 abs(ang(movedirection.pan-my.pan)) < 30 


however, this is still done in A6, might have to be converted to A7... i dunno, lol :P

anyway, have fun with this one wink

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/