# How to select and Spawn different pawn for each player using UMG

**URL:** <https://forums.unrealengine.com/t/how-to-select-and-spawn-different-pawn-for-each-player-using-umg/491518>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, Multiplayer, pawn, CPP, question\
**Created:** [December 2, 2021, 3:44am UTC](https://forums.unrealengine.com/t/how-to-select-and-spawn-different-pawn-for-each-player-using-umg/491518 "2021-12-02T03:44:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_808b06d6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_808b06d6](https://forums.unrealengine.com/u/anonymous_user_808b06d6)\
**Post date:** [December 2, 2021, 3:44am UTC](https://forums.unrealengine.com/t/how-to-select-and-spawn-different-pawn-for-each-player-using-umg/491518/1 "2021-12-02T03:44:17Z")

</div>

I’ve been bothered by this for a week, I checked [this tutorial](http://unrealcommunity.wiki/spawn-different-pawns-for-players-in-multiplayer-ravgudcc) on community wiki and [this one](http://forums.unrealengine.com/t/uitilizing-external-user-accounts/120140). the .txt file solution does not really help, since I want to select character from UserWidget and call it later in controller ServerSetPawn using IMenuInterface.

1. I’m not very familiar with struct, can I also declare my switch pawn function in STRUCT?
2. Can IMenuInterface pass the argument of ServerSetPawnA(), …PawnB(), …PawnC() to ServerSetPawnA,B,C() in MyPlayerController\> For example, (UserWidget)Button-\>Onclicked(…::SetPawnA), MenuInterface-\>ServerSetPawnA(); (PlayerController) ServerSetPawnA();
3. I know I can possess a different pawn after postlogin into lobby, but my goal is to select at MainMenu level and spawned into lobby already with different pawns.

I just want to know can I achieve this with (CharacterButtonClicked) MenuInterface, PlayerController, and Gamemode in a flow.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_808b06d6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_808b06d6](https://forums.unrealengine.com/u/anonymous_user_808b06d6)\
**Post date:** [December 2, 2021, 9:08am UTC](https://forums.unrealengine.com/t/how-to-select-and-spawn-different-pawn-for-each-player-using-umg/491518/2 "2021-12-02T09:08:12Z")

</div>

Never mind, I found it out myself, Menuinterface has nothing to do with playercontroller or gamemode. In case any one want to do something similar, create a save game.
