The brain of the computer-controlled plane will be a simple one. It will determine the angle difference towards the player plane. Then, it will turn towards that direction. If the player plane is in front of the computer controlled one, it will fire a shot.
gameclass. The parameter is an object (usually the enemy plane).
Local angle:Float = obj.GetTargetAngle(player,True)
If angle < 0 Then obj.SetAngle(-eng.GetDeltaTime()/16.0,True) ...