Get Player Location with c++

Thanks for posting this. I have to sometimes run the below code to get it to work for me.

GetWorld()->GetFirstPlayerController()->GetPawn()->GetActorLocation();