Problem on lock on system

Hello to everyone, I tried to prepare a simple lock on system but it doesn’t work unfortunately. Main idea of the code is making npc character to look at my main character when I get close enough. Can anyone help? Thanks. (First photo belongs to the main character and second one belongs to the npc ai).

Hello! You wrote that you want NPC to look at Main Character, but rotation code is inside Main Character BP… Maybe you want Main Character to target to NPC when he/she is near?