I know this is a two years old question but, since you can still find it when googling, I’d like to point out you can also use:
GetWorld()->GetFirstPlayerController()->GetActorLocation()
Which I personally find easier to grasp.
I know this is a two years old question but, since you can still find it when googling, I’d like to point out you can also use:
GetWorld()->GetFirstPlayerController()->GetActorLocation()
Which I personally find easier to grasp.