How Can I Get A Players Position

I am trying to code a simple program where a actor moves towards a moving player for this i need to store the players position, could someone please help me and tell me how i can do this.

Thank you

I assume player controls pawn/character. Simply get pawn controlled by a player and call GetActorLocation() on it.

Every actor has it function. Actor components implement GetComponentLocation() with the same meaning.

GetActorLocation()

API refrence your new bible :stuck_out_tongue:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/GetActorLocation/1/index.html