# How to make the character move only left and right when it enters trigger box

**URL:** <https://forums.unrealengine.com/t/how-to-make-the-character-move-only-left-and-right-when-it-enters-trigger-box/1342006>\
**Category:** Blueprint\
**Tags:** charactermovementcom, unreal-engine, question\
**Created:** [October 23, 2023, 4:27pm UTC](https://forums.unrealengine.com/t/how-to-make-the-character-move-only-left-and-right-when-it-enters-trigger-box/1342006 "2023-10-23T16:27:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![gardian206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gardian206](https://forums.unrealengine.com/u/gardian206)\
**Post date:** [October 23, 2023, 8:53pm UTC](https://forums.unrealengine.com/t/how-to-make-the-character-move-only-left-and-right-when-it-enters-trigger-box/1342006/9 "2023-10-23T20:53:48Z")

</div>

you would put the limited input either into the same place the normal movement would be done for a bool type implementation:

 ![2DForwardBack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/0/f6077bd3a4f2cdbfdf28cb0260c460092cfc4d7b.png)

or if you are using the Enhanced Input Subsystem then you can also create a separate Input Action that is assigned to a different Input Mapping Context

You can look here [How can I disable InputAction except some Input Action In Enhanced Input?](https://forums.unrealengine.com/t/how-can-i-disable-inputaction-except-some-input-action-in-enhanced-input/1205904) for more details on the differences between the 2 implementations.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-the-character-move-only-left-and-right-when-it-enters-trigger-box/1342006)._
