Converting this blueprint that rotates character to C++

I am following a tutorial online about a third person shooter. This blueprint rotates the player to wherever the camera is facing. I am trying to figure out how to convert this to C++. I’m sure it’s simple but for some reason I am missing something. Thanks!