EQS Distinguish Enemies From Allies With Team ID

Hey Everyone. I’m trying to make a team based AI. I’m using the same class for both the teams. I’ve assigned teamID’s to both the teams.

How can I use eqs to distinguish between team members and enemy team?

I got it by creating a custom EQS Generator where I comapred the Querier’s TeamID with Other AI Characters. Although I had to use GetAllActorsOfClass which I hate to use. But can’t find any other solution for now and on top of everything it works great for me.

Cheers.