Ways for character bp to check what the player is attacking?

hello i want to create a summoned pet system, the pet is going to attack what the player is attacking.
what would be a good way for a pet character bp to check what the player is currently attacking
i have line trace set up for attacking on the player also magic projectile hit actor, would a hit actor be preferred to use ?

I’m assuming you handle attacks as an “On Hit” or “On Begin Overlap” of some type. The Event Hit/Overlap has a pin called “Other Actor,” which you’re probably using to determine who to do damage to. You can promote “Other Actor” to a variable in your character blueprint, and then have your pet actor constantly watch that variable by casting to your player’s blueprint in Event Tick. I’ve not messed around much with AI, so I don’t know what you’d need to do to actually make the pet actor attack, but you can use the variable you get from the player character to define its target.