How to automatically rotate the third person camera based on player's direction

Hi, I’m wondering if anyone could help me out with my camera issues, I want the camera boom to be set to use pawn control rotation so I can look around the player but as the character moves, for instance towards the camera, I want the camera to automatically move behind him, something like in GTA