Enemy chasing player after interaction

Hey! I’m quite new to Unreal and I’ve been trying to create an enemy which chases the character when they have seen them steal an item. This works with the current blueprint setup down below, however, if the character then walks past another enemy who didn’t witness the interaction, they too will start chasing once they’re in line of sight.

Does anyone know how I would fix this so any other enemy who hasn’t witnessed the interaction won’t also start chasing the character?


This is because you’re basing your logic on the HasInteracted flag, which is stored in the Character.

Whenever a Character interacts with something, HasInteracted flips to True and stays that way forever,
so from now on every Enemy will chase the Character upon seeing him.

There are multiple ways to fix this to get the behavior you want.

Probably, the easiest way (but definitely not optimal) would be to make a delay and after some time, set HasInteracted back to False