How could I make AI that can target other AI?

I’m working on a ww2 game with 50 ai on each team including me. I want my friendly ai to shoot the enemy ai and vice versa but also be able to target me.