Disable bots seeing one another

That bool bSeeFriendly does the traces if set to true. I extend off AIController which does extend from Controller.

What I understood is you wanted to find a way to detect specific bots and do some action only on those specific bots and not have to rely on the see events and set the bSeeFriendly to true as it does extra checks if set to true.

The ForEach AllActors(class’MyClassOfBot’, zp) is looking at the AI’s pawn class. I do this check periodically, I add a sleep with a variable time which is configurable in the game. Obviously the lower the sleep value the greater the likelihood of more subsequent actions for the bot. For example if nothing is within a specific range then sleep for a long period otherwise reduce the interval based on distance and what it is you want the AI to do.

That way you can control reactions of the bot as I suspect the reactions and sleep values for close in combat or if its a sniper and target has just come within range would differ.