# How do I Get the class that the player selected?

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 1, 2023, 10:27pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007 "2023-04-01T22:27:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshuaSavage904](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoshuaSavage904](https://forums.unrealengine.com/u/JoshuaSavage904)\
**Post date:** [April 1, 2023, 10:27pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007/1 "2023-04-01T22:27:08Z")

</div>

I need to restock players based on the class they chose on spawn. To do that I need some reference to what was chosen. Any ideas?

---

<div class="post-metadata">

**Author:** ![alphh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alphh/32/637108_2.png) [@alphh](https://forums.unrealengine.com/u/alphh)\
**Post date:** [April 1, 2023, 11:12pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007/2 "2023-04-01T23:12:30Z")

</div>

I can try to help you, but can you tell me what device you’re using? The Class Selection UI?

---

<div class="post-metadata">

**Author:** ![JoshuaSavage904](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoshuaSavage904](https://forums.unrealengine.com/u/JoshuaSavage904)\
**Post date:** [April 2, 2023, 1:14am UTC](https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007/3 "2023-04-02T01:14:41Z")

</div>

yes thats what im using

---

<div class="post-metadata">

**Author:** ![davidpkami](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidpkami/32/1040403_2.png) [@davidpkami](https://forums.unrealengine.com/u/davidpkami)\
**Post date:** [April 14, 2023, 9:03am UTC](https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007/4 "2023-04-14T09:03:10Z")

</div>

Same problem here, there is no documentation in [player class](https://dev.epicgames.com/documentation/en-us/uefn/verse-api/versedotorg/simulation/player?application_version=1.0)

---

<div class="post-metadata">

**Author:** ![horizonprovr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@horizonprovr](https://forums.unrealengine.com/u/horizonprovr)\
**Post date:** [April 18, 2023, 1:37pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-class-that-the-player-selected/838007/5 "2023-04-18T13:37:42Z")

</div>

Alright! I ran into the same issue and there was no easy solution. HOWEVER, I found an option that ended up working for me.

I set players up to choose their class on spawn, and then put their spawn location in a noncombat zone. To get into the game proper, players walk through a teleporter from the noncombat zone. It’s actually eight teleporters stacked atop one another, one for each of the four classes and two teams. I have the teleporters send an event when they teleport the player, and use the different teleporters to see which class the player was.

Hope this helps! Let me know if you want more insight as to how I resolved this problem.
