Can you use two IR transistors and and IR LED to pan a turret?

By any chance are you reffering to laser targeting? To where to point the laser and the turret follows.