# How to retrieve a player's information in Verse?

**URL:** <https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 10, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814 "2025-02-10T15:16:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/1 "2025-02-10T15:16:46Z")

</div>

Hello everyone,  
I would like to recover the life and shield of a player in a variable in Verse, but I don’t know how to do it. Could you help me please? Thanks in advance!

---

<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:** [February 10, 2025, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/2 "2025-02-10T15:40:56Z")

</div>

```auto
if(FortChar:=Agent.GetFortCharacter[]:
      FortChar.GetShield()
      FortChar.GetHealth()

```

---

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 4:55pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/3 "2025-02-10T16:55:06Z")

</div>

Thank you so much !

---

<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:** [February 10, 2025, 5:00pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/4 "2025-02-10T17:00:48Z")

</div>

No problem, good luck on whatever you’re making that utilizes the fort character and don’t forget to read documentation for more functions regarding the fort character [fort\_character interface | Unreal Editor for Fortnite Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/uefn/verse-api/fortnitedotcom/characters/fort_character)

---

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 5:14pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/5 "2025-02-10T17:14:34Z")

</div>

Thanks again, you helped me out a lot. And thanks for the Epic documentation as well.

---

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/6 "2025-02-10T17:39:09Z")

</div>

Sorry to bother you, but my `Agent` is of type `?agent` and no `agent`. So it gives me an error. Here is my code:

```auto
@editable TriggerHealth_Add1 : trigger_device = trigger_device{}

OnBegin<override>()<suspends>:void=
    TriggerHealth_Add1.TriggeredEvent.Subscribe(Health_Add1)

Health_Add1(A:?agent):void=
    if (FortChar:=A.GetFortCharacter[]):
        FortChar.GetShield()
        FortChar.GetHealth()

```

My mistake is at the level of the expression: `if (FortChar:=A.GetFortCharacter[]):` Could you help me again?

---

<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:** [February 10, 2025, 5:42pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/7 "2025-02-10T17:42:21Z")

</div>

`if(Agent:=Agent?,FortChar:=Agent.GetFortCharacter[]):`

---

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 6:04pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/8 "2025-02-10T18:04:43Z")

</div>

Thanks! One more question: how can you change the parameters of a class designer (maximum life, invincibility, etc …)

---

<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:** [February 10, 2025, 6:11pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/9 "2025-02-10T18:11:48Z")

</div>

You can’t change a class designer at runtime, the values set in them are static you can have many class designers for each thing you want different

---

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 6:17pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/10 "2025-02-10T18:17:26Z")

</div>

Ah! The goal of my device was to change a player’s life to fully customize it. For example, when a trigger is triggered, it decreases life by 1 HP; another, it increases it by 1 HP each time they are triggered… I don’t know if I was clear in my explanations, but I can’t find a solution to this problem…

---

<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:** [February 10, 2025, 6:34pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/11 "2025-02-10T18:34:26Z")

</div>

You can use Fort\_Character.SetMaxHealth() etc etc as mentioned in the documentation pages to change their health accordingly

---

<div class="post-metadata">

**Author:** ![Mistigri\_76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mistigri\_76](https://forums.unrealengine.com/u/Mistigri_76)\
**Post date:** [February 10, 2025, 7:52pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/12 "2025-02-10T19:52:55Z")

</div>

Thank you so much !

---

<div class="post-metadata">

**Author:** ![SourCCTiger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SourCCTiger](https://forums.unrealengine.com/u/SourCCTiger)\
**Post date:** [February 11, 2025, 1:14am UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/13 "2025-02-11T01:14:01Z")

</div>

thank you gis,

---

<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:** [March 13, 2025, 1:14am UTC](https://forums.unrealengine.com/t/how-to-retrieve-a-players-information-in-verse/2325814/14 "2025-03-13T01:14:42Z")

</div>

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