[solved] How to make an AI that ignores players behind objects?
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
Hello Jordan Ellis,
I'm glad to hear that you've resolved your issue. I'll just leaving this answer here so that the question can be marked as resolved for tracking purposes.
Have a nice day!
answered Jan 20 '16 at 08:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here