# How do I make an action mapping require multiple button presses?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799>\
**Category:** Blueprint\
**Tags:** unreal-engine, action-mappings, UE4, question, Blueprint\
**Created:** [July 3, 2016, 11:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799 "2016-07-03T11:02:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![7hrone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@7hrone](https://forums.unrealengine.com/u/7hrone)\
**Post date:** [July 3, 2016, 11:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799/1 "2016-07-03T11:02:17Z")

</div>

I want something to need to have 2 buttons pressed at once Left Shoulder + Right Shoulder in order to trigger the action rather than it being Left Shoulder or Right Shoulder

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [July 3, 2016, 11:34am UTC](https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799/2 "2016-07-03T11:34:28Z")

</div>

Boolean is the answer (or boolean + branch).

---

<div class="post-metadata">

**Author:** ![7hrone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@7hrone](https://forums.unrealengine.com/u/7hrone)\
**Post date:** [July 3, 2016, 12:40pm UTC](https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799/3 "2016-07-03T12:40:59Z")

</div>

I’m still trying to wrap my head around UE do you think you could give me an example. I’m having trouble understanding how to get button presses to be a variable

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [July 3, 2016, 6:41pm UTC](https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799/4 "2016-07-03T18:41:13Z")

</div>

Have a booleans PressedLeftStick and PressedRightStick when you press one of the buttons change its boolean to true, when you release one of them change its boolean to false.  
Now this part depends on what type of button it is if its a one click button both of the buttons should have two branches with the both of the boolean connected in them, and what you want to happen.  
If its hold type you can add the two branches only to one button that will be enough.(or you can add the branches to TICK event) PS: branch is like IF in programing for boolean. Good luck

---

<div class="post-metadata">

**Author:** ![7hrone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@7hrone](https://forums.unrealengine.com/u/7hrone)\
**Post date:** [July 4, 2016, 5:24am UTC](https://forums.unrealengine.com/t/how-do-i-make-an-action-mapping-require-multiple-button-presses/362799/5 "2016-07-04T05:24:48Z")

</div>

Yep that worked out for my thank you.
