# Get the current player

**URL:** <https://forums.unrealengine.com/t/get-the-current-player/1988295>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 23, 2024, 1:24am UTC](https://forums.unrealengine.com/t/get-the-current-player/1988295 "2024-08-23T01:24:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JWRHarding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JWRHarding](https://forums.unrealengine.com/u/JWRHarding)\
**Post date:** [August 23, 2024, 1:24am UTC](https://forums.unrealengine.com/t/get-the-current-player/1988295/1 "2024-08-23T01:24:24Z")

</div>

How do I access. The current player. For example let’s say I want to display the current position of the player in X, Y and Z on the HUD with UI. How would I proceed to access the player’s object.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [August 24, 2024, 11:44am UTC](https://forums.unrealengine.com/t/get-the-current-player/1988295/2 "2024-08-24T11:44:58Z")

</div>

So you would need to get a player’s instigation somehow either with devices or do something with `GetPlayspace().GetPlayers() (or GetPlayspace().PlayerAddedEvent.Subscribe(FunctionHere))`

Then after you have the agent/player you will need to get its fortcharacter by doing:

```auto
if(FortCharacter:=Agent.GetFortCharacter[]):
      FortCharacter.GetTransform()

```

that should give you the transform of the character and then you can further open it’s translation and get the X,Y,Z values from it and put it inside verse UI or wherever you desire.

When you first type the GetFortCharacter it will show you an error saying to put using {…} just copy paste that message and put it at the top of your script

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 23, 2024, 11:45am UTC](https://forums.unrealengine.com/t/get-the-current-player/1988295/3 "2024-09-23T11:45:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
