Basically, I have created an AI that chases the player whenever the player enters its trigger box. However the problem is that even if another AI overlaps with the trigger box, the AI will still go ahead and chase the player. So I was wondering is there anyway to fix this problem? Thanks!
Cast the overlaping pawn to your player character BP. If it pases, it’s a player.
After the triggered event,
get the instigator (who caused the overlap event),
then check the instigator is a player class or check if is the AI class.
This should work, if it returns false then means this is not AI controller.
Thanks it worked!