# How do I move 2 character with the same input?

**URL:** <https://forums.unrealengine.com/t/how-do-i-move-2-character-with-the-same-input/1187997>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 3, 2023, 10:03pm UTC](https://forums.unrealengine.com/t/how-do-i-move-2-character-with-the-same-input/1187997 "2023-06-03T22:03:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pinteco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pinteco](https://forums.unrealengine.com/u/Pinteco)\
**Post date:** [June 3, 2023, 10:03pm UTC](https://forums.unrealengine.com/t/how-do-i-move-2-character-with-the-same-input/1187997/1 "2023-06-03T22:03:35Z")

</div>

I have a default pawn that inside its blueprint spawn an actor called player2 which is a character. If I press W the default pawn moves forward. I wanted the actor player2 to also move forward when pressing W. How do I achieve this?

---

<div class="post-metadata">

**Author:** ![xCANAdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xCANAdan](https://forums.unrealengine.com/u/xCANAdan)\
**Post date:** [June 3, 2023, 10:23pm UTC](https://forums.unrealengine.com/t/how-do-i-move-2-character-with-the-same-input/1187997/2 "2023-06-03T22:23:51Z")

</div>

you can try setting the player to have a higher input priority. you can also set it to auto receive input.

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [June 3, 2023, 11:02pm UTC](https://forums.unrealengine.com/t/how-do-i-move-2-character-with-the-same-input/1187997/3 "2023-06-03T23:02:03Z")

</div>

I’d make a switchboard type of setup on the player controller and have the pawns subscribe to input events individually.

So for example you read the input actor on player controller, and have it send an event dispatch for “spacebar pressed”.

In the pawn class you Get Player Controller → Assign event “spacebar pressed”.

You might use a branch to control whether or not the event is used. Like you have a bool called “ListeningForInput” that gets toggled on/off however you need and just use that to block or allow response to these events.

Reason I’d do it this way is because you can easily add or remove listeners and you don’t have to mess with input priorities or anything hidden in c++ engine code. You have complete control over who responds to input events with your blueprint code.

---

<div class="post-metadata">

**Author:** ![ugmoe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ugmoe](https://forums.unrealengine.com/u/ugmoe)\
**Post date:** [June 4, 2023, 6:45am UTC](https://forums.unrealengine.com/t/how-do-i-move-2-character-with-the-same-input/1187997/4 "2023-06-04T06:45:42Z")

</div>

probably something like this (i’m using an old version of UE, so the nodes might be slightly different

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/9/7397d87bb17af9fe27edb44ec23aeb3199871c57.jpeg)
