So taking a closer look at your script, who do you want to follow whom? Because you have the trigger volume overlap actor as the human, and then you have the pawn sensing also in the human character. Maybe I misunderstood your set-up but if you want the human AI to follow the penguin (player character) then you’re looking for when the “penguin” since that is the moveable character…overlaps the trigger volume which would be near the human AI. When the penguin enters the trigger volume have it set a variable in the Human AI character that releases it’s pawn sensing behavior. I see from my screen shots I confused you haha I threw the script together in a character BP which also did the overlapping instead of making 2 separate characters for you. So what you would need to do to get it to work is this:
In Human BP/AI controlled character:
Create a boolean variable to control the pawn sensing behavior (you already did this)
In Penguin BP/Player Controlled Character:
Cast to Human BP or AI Class and store the output pin of the cast as a Variable to reference later
Create a new function which does the following
- get reference to AI
- From AI reference, drag off a pin and SET boolean variable created earlier to “true”
Level BP:
Have reference to trigger volume and on overlap cast to “Penguin”/Player controlled character, after the cast call the function created in Penguin/Player controlled character
Let the function do the work of setting the boolean in the Human/AI character