# Assign Each Player different roles

**URL:** <https://forums.unrealengine.com/t/assign-each-player-different-roles/2281222>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [January 16, 2025, 8:31pm UTC](https://forums.unrealengine.com/t/assign-each-player-different-roles/2281222 "2025-01-16T20:31:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattOwen1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MattOwen1](https://forums.unrealengine.com/u/MattOwen1)\
**Post date:** [January 16, 2025, 8:31pm UTC](https://forums.unrealengine.com/t/assign-each-player-different-roles/2281222/1 "2025-01-16T20:31:04Z")

</div>

So currently I have a lobby system that all the players join and then start the game. What I want to do is when the players connect to a new map, I want to assign each player a different role randomly (One player gets role A, another player gets role B, and so on until each player has a different role). Each role has it’s own blueprint parented from a base blueprint.

I honestly don’t even know how to begin implementing this.

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [January 16, 2025, 9:10pm UTC](https://forums.unrealengine.com/t/assign-each-player-different-roles/2281222/2 "2025-01-16T21:10:17Z")

</div>

Hello there @MattOwen1!

A similar inquire was addressed and resolved in the following thread, their findings could help you for your scenario:

> [@Randomize array role for each player](https://forums.unrealengine.com/t/randomize-array-role-for-each-player/2139839):
>
> Hello everyone, I am trying to make mini game with roles for example every game have 2 civ 1 doctor 1 police but i want to randomize the enum for 2 player have role(police , doctor) except 2 players have civ role but i don’t know how to do that i trying a lot but i got different result if anyone can help me I really appreciate it I got players array like this

---

<div class="post-metadata">

**Author:** ![MattOwen1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MattOwen1](https://forums.unrealengine.com/u/MattOwen1)\
**Post date:** [January 16, 2025, 10:05pm UTC](https://forums.unrealengine.com/t/assign-each-player-different-roles/2281222/3 "2025-01-16T22:05:19Z")

</div>

Exactly what I was looking for thank you! Don’t know how that thread didn’t come up after my 30 minutes of google research…

---

<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:** [February 15, 2025, 10:06pm UTC](https://forums.unrealengine.com/t/assign-each-player-different-roles/2281222/4 "2025-02-15T22:06:11Z")

</div>

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