# How do i make a client switch charaters

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522>\
**Category:** Blueprint\
**Tags:** possess, unreal-engine, UE4, Blueprint, question\
**Created:** [October 25, 2019, 1:20pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522 "2019-10-25T13:20:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [October 25, 2019, 1:20pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/1 "2019-10-25T13:20:25Z")

</div>

I am making an ability for the player to switch to a different character but when I do it on the client it doesn’t do anything. I tried doing a custom event as well but it still failed to do anything, so how would I get the client to switch characters

 ![291069-2019-10-25.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/9/0b997cd4a67bca3eb5764506d8c91557386628ec.png)

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [October 25, 2019, 1:26pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/2 "2019-10-25T13:26:36Z")

</div>

your clientSwitch needs to be set as a RPC runOnServer. but the rest of your setup doesn’t look good for multiplayer! getController(0) gives you always the server playerController…this is not what you want.

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [October 25, 2019, 1:52pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/3 "2019-10-25T13:52:01Z")

</div>

Do you know what I would use instead of the get player controller

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [October 25, 2019, 4:07pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/4 "2019-10-25T16:07:00Z")

</div>

I guess the easiest is following: make an Server RPC Event for your PawnSwitch, add it an Input of PlayerControllerReference. On your client pawn you can use getController, this gives you the controller of the pawn from the client, use this as an Input for your PawnSwitch Event. Serverside you can feed that PlayerController into the Possess. that should do the trick.

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [October 25, 2019, 6:05pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/5 "2019-10-25T18:05:02Z")

</div>

So are you adding an input to the event that has the input controller. I’ve tried using it but I get an error saying not trying to read the event

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [October 25, 2019, 7:46pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/6 "2019-10-25T19:46:37Z")

</div>

so is this what it should look like

 ![291123-2019-10-25-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/9/199dd8d18f078ac0395144c9a5a7f7637a5ed9e7.png)

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [October 25, 2019, 8:14pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/7 "2019-10-25T20:14:38Z")

</div>

I think I seem to understand it now the client can be switched when the server dose it but my problem is that my client can’t get the server to trigger an event server side

---

<div class="post-metadata">

**Author:** ![CrispClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crispclover/32/1140157_2.png) [@CrispClover](https://forums.unrealengine.com/u/CrispClover)\
**Post date:** [October 25, 2019, 8:25pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/8 "2019-10-25T20:25:44Z")

</div>

I presume the possession is part of the gameplay. You could notify the GameMode to handle the character change.

About [Event Dispatchers](https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/EventDispatcher/index.html), if you want them.

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [October 25, 2019, 8:44pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/9 "2019-10-25T20:44:15Z")

</div>

look:

 ![291124-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/e/6ae46c2164cf77af6215c0c97e99cccb2d9e418c.png)

I’m pretty sure you could save the switchHasAuthority-\>authority way and always go the remote, but I’m not 100% sure, this should be the cleaner solution.  
Im running this inside of a pawn.  
If you get errors like “not owning connection” we need to move that into the controller, but I don’t think so 😉

---

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [October 25, 2019, 9:00pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/10 "2019-10-25T21:00:57Z")

</div>

Thanks, for the info, I ended up figuring out how to do it I

 ![291126-2019-10-25-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/7/5472714522c041738a363fb5bcf20d39a566f4d2.png)

pretty much had to do a 2 step event for the server to switch the client and now it works. 😃

---

<div class="post-metadata">

**Author:** ![MIkurala](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MIkurala](https://forums.unrealengine.com/u/MIkurala)\
**Post date:** [October 31, 2022, 7:01am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-client-switch-charaters/457522/11 "2022-10-31T07:01:13Z")

</div>

really appreciate your reply,that issue confuse me for three day!! thank you again.
