Get Player Location with c++

I need to get the location of the first person camera from a different file in c++. I want to make an actor walk towards the player, but I don’t know how to get the player location. Any help is appreciated, thanks.