If I use APawn it will also find the AI but if I use a Tag for player I should be able to make it work that way.
So it will
Find all Pawns -> Exclude Pawns without the Tag Player (using if statement) and then do everything needed.
My question revolves around performance. Because I need to constantly update a zombies target I am running this on tick. If I am searching for all pawns in the world every frame (which could be up to 100 or more) wouldn’t that be pretty slow or at the very least destroy performance?
I’ve been thinking about this issues and wondering if I should limit the area the Zombie can search (on tick) or use sensing component to only check distance while multiple characters are sensed (use onHearNoise, OnSeePawn).
edit: Just to let you know I made the changes yall pointed out and it works awesome. Thanks for the help!