Correct way to flip NPCs so they face their pathfinding target?

I just want my NPCs to face the target they are attacking/chasing from the pathfinding (navmesh) behavior.

I’ve tried using this condition:

But it completely breaks my game. Hidden objects become visible, the cameras break, etc. This is specifically when the top part about “moving” is active.

The buttom part about “attacking” just doesn’t work. Don’t think its the right condition I’m using.

My goal is be that while the NPC is “moving” they face the direction of the pathfind movement, and if they are “attacking” the face the direction they are shooting.

I am also not sure do you really need repeat for each