IR Battle Tanks

That's awesome stuff. Is there a way for the towers to identify friend-or-foe or do they target any nearby target ?