Getting AI to react to damage

Hi all,

I’ve been trying to add new functionality into the AI to make them “smarter” and react a little bit to conditions that happen during gameplay. One of these is getting the NPC to immediately turn and chase the player if the NPC is shot. The problem here is I can’t seem to get it to work. I’ve tried a few things:

  1. Making an Event AnyDamage in the AI controller BP and directly changing the enemy key on the blackboard, but I assume this isn’t firing because the AI BP isn’t what’s being damage

  2. Trying to get the AI controller on damage in the BP_Character, but it appears that getting the AI controller and then attempting to cast ti to NPC_BP_AI is failing.

I’m at a bit of a loss where/what to try next. Can someone walk me through the general logic of how this would work with the NPC AI we’ve set up in Testing Grounds?

Thanks!
Phil