# How do I control a second player with a gamepad?

**URL:** <https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436>\
**Category:** Blueprint\
**Tags:** gamepad, possess, possession, unreal-engine, Blueprint, question\
**Created:** [November 20, 2014, 3:02am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436 "2014-11-20T03:02:48Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_64bdf7de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64bdf7de](https://forums.unrealengine.com/u/anonymous_user_64bdf7de)\
**Post date:** [November 20, 2014, 3:02am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/1 "2014-11-20T03:02:48Z")

</div>

I’m working on a two player game in which one player uses the keyboard+mouse and another uses gamepad. I’m having difficulty understanding how to make the second player move using the gamepad. I did some research and found that I need to “possess” the controller for the second player in the game but, I am having trouble understanding how to do this. This is the blueprint I have set up already.

 ![21703-gamepadbp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/9/529337d8017b049a11ab01c78559cb928c43584e.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 20, 2014, 7:37pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/2 "2014-11-20T19:37:08Z")

</div>

Hi Chimps,

In your Player Controller for your second player, create a “Possess” node, and select your Player 2 blueprint. That should do what you are looking for.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64bdf7de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64bdf7de](https://forums.unrealengine.com/u/anonymous_user_64bdf7de)\
**Post date:** [November 21, 2014, 4:37pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/3 "2014-11-21T16:37:24Z")

</div>

Is that done in the construction script for the character? Something like this?  
Thanks for responding, .

 ![21850-chimps.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/8/1d8d7a3f5b796ef022d8667708a339bc5d1427d3.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 21, 2014, 4:45pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/4 "2014-11-21T16:45:02Z")

</div>

I would actually do it with an event begin play in the event graph. The Construction Script is typically used for changes that occur outside of real time. So things such as changing the location of an object in editor or anything that must occur before an object is actually present in the game.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64bdf7de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64bdf7de](https://forums.unrealengine.com/u/anonymous_user_64bdf7de)\
**Post date:** [November 21, 2014, 5:00pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/5 "2014-11-21T17:00:31Z")

</div>

I tried possessing the character but it still isn’t responding to the input I give it. Should I be using the “Create Player” function as well?

 ![21863-createplayer.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/c/5bc1d00165f30aacc30c7cbb218d09f803b1bffb.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 24, 2014, 8:34pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/6 "2014-11-24T20:34:10Z")

</div>

When you are using the gamepad, are you able to move the first player around or do neither the first nor second player move when you utilize the gamepad?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64bdf7de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64bdf7de](https://forums.unrealengine.com/u/anonymous_user_64bdf7de)\
**Post date:** [November 26, 2014, 2:18am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/7 "2014-11-26T02:18:04Z")

</div>

It’s just the player controlled by the gamepad. I have tried 3 different gamepads.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 26, 2014, 6:19pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/8 "2014-11-26T18:19:55Z")

</div>

Hi Chimps,

Ok I have two more questions:

1. Are you doing a local multiplayer splitscreen or shared screen?
2. Have you tried setting a branch in front of your inputs to test whether or not it is player 0 or player 1? If you set this up this way, what you can do is set up to prevent any action from occurring if they are not the right player controller.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64bdf7de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64bdf7de](https://forums.unrealengine.com/u/anonymous_user_64bdf7de)\
**Post date:** [December 1, 2014, 4:41am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/9 "2014-12-01T04:41:41Z")

</div>

I am doing local multiplayer where two players share the same screen.

I have not tried this. Is there a specific function I can call to check for their player number/index(I’m not sure if they are the same thing)?

I’m sorry about the late reply, I’ve been busy with the holiday.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [December 1, 2014, 7:33pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/10 "2014-12-01T19:33:24Z")

</div>

Hi Chimps,

What you can do is promote the player controller to a new variable and do a == (int) check to see if that variable == 0 or 1.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64bdf7de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64bdf7de](https://forums.unrealengine.com/u/anonymous_user_64bdf7de)\
**Post date:** [December 8, 2014, 6:57am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/11 "2014-12-08T06:57:30Z")

</div>

I am essentially building off the third person blueprint project, so I don’t have a separate blueprint that has my controls. Would you recommend that I use a separate blueprint to control the characters?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [December 8, 2014, 7:07pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/12 "2014-12-08T19:07:34Z")

</div>

You shouldn’t have to, you can simply add the branching if check before the input commands. The player controller check can be called from both the player controller and the player pawn/character without any trouble so it shouldn’t make a significant difference which you are using.

---

<div class="post-metadata">

**Author:** ![Raed\_Abbas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/raed_abbas/32/482168_2.png) [@Raed\_Abbas](https://forums.unrealengine.com/u/Raed_Abbas)\
**Post date:** [February 3, 2015, 5:42pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/13 "2015-02-03T17:42:07Z")

</div>

Hello guys, Did you find a solution for this? I am trying to do the same thing but no luck so far! Also, I don’t know how did manage to ref self to InPawn in Possess? I tried but it won’t let me

Many thanks

---

<div class="post-metadata">

**Author:** ![Eduard\_Gotwig\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eduard\_Gotwig\_1](https://forums.unrealengine.com/u/Eduard_Gotwig_1)\
**Post date:** [March 26, 2015, 1:03pm UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/14 "2015-03-26T13:03:12Z")

</div>

Try this, i dont have multiple gamepads, so no chance to try it out…

> **[Playercontroller\[0+1\] cant receive any (gamepad/keyboard) input](https://forums.unrealengine.com/questions/162249/playercontroller01-cant-receive-any-gamepadkeyboar.html)**
>
> I found this out while trying to find a solution for this on answerhub, and see that there is no solution to this, to neither of the gamepad or the keyboard question, as its obviously a bug. Only the first Player Controller can receive input, wether...

---

<div class="post-metadata">

**Author:** ![LoN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoN](https://forums.unrealengine.com/u/LoN)\
**Post date:** [September 21, 2016, 11:06am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/15 "2016-09-21T11:06:49Z")

</div>

No luck so far. i am stuck with this too.

---

<div class="post-metadata">

**Author:** ![thedarknight1611](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thedarknight1611](https://forums.unrealengine.com/u/thedarknight1611)\
**Post date:** [May 26, 2017, 3:41am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/16 "2017-05-26T03:41:27Z")

</div>

DON’T WORRY  
SUPERMAN HAS ARRIVED ALRIGHT LADYS AND GENTS. Its actually very simple under the local multiplayer tab theres an option called SKIP ASSIGNING GAMEPAD TO PLAYER ONE. to get there simply click edit then project settings and search the option or local multiplayer,  
hopes this helps,  
PS  
LOCAL MULTIPLAYER RULES!!!

---

<div class="post-metadata">

**Author:** ![thedarknight1611](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thedarknight1611](https://forums.unrealengine.com/u/thedarknight1611)\
**Post date:** [May 26, 2017, 3:42am UTC](https://forums.unrealengine.com/t/how-do-i-control-a-second-player-with-a-gamepad/299436/17 "2017-05-26T03:42:26Z")

</div>

Its actually very simple under the local multiplayer tab theres an option called SKIP ASSIGNING GAMEPAD TO PLAYER ONE. to get there simply click edit then project settings and search the option or local multiplayer, hopes this helps, PS LOCAL MULTIPLAYER RULES!!!
