I’m trying to create a blueprint tank AI that will see the player, but only if the player is not behind a wall or some other obstruction. I’ve tried the PawnSensing component but it seems to only sense characters, but my player is a pawn with physics. The enemy can’t be a character because it’s a static mesh with physics and the capsule collider wont fit the shape. I’ve also tried using line traces but it doesn’t refresh and follow the player.
I’m stuck. Any suggestions?
Thanks in advance.
EDIT: I realized my player mesh was not the root component in in the blueprint