I’ve been working with the Pawn Sensing configuration for AI in a game I’m working on, and have run into a bit of a snag. I’ve configured the AI to chase my character when he sees him, and have been able to modify the AI’s “Max Walk Speed” based upon the distance from the Player. What I would like to do is add an additional set of code so that if the Player’s camera/POV is looking at the advancing AI, the AI will act differently.
Here’s my code so far:
Right now, it is triggering and I’m getting the text pop-up saying “SIGHT” whenever the AI sees my character, however, I also see the message when I turn my back to it and I can’t see it.
I believe that if there is a camera configuration I could replace the “Get Player Controller” node with, it would work, but for the life of me, I cannot currently find one. Is there something you can think of that would accomplish what I’m looking to do?
Thanks, in advance!