# How to disable interactions ingame when Inventory is open?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-interactions-ingame-when-inventory-is-open/475695>\
**Category:** Editor Scripting\
**Tags:** inventory, Input, disable, inventory-system, unreal-engine, question\
**Created:** [December 10, 2020, 12:30am UTC](https://forums.unrealengine.com/t/how-to-disable-interactions-ingame-when-inventory-is-open/475695 "2020-12-10T00:30:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miloCody](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@miloCody](https://forums.unrealengine.com/u/miloCody)\
**Post date:** [December 10, 2020, 12:30am UTC](https://forums.unrealengine.com/t/how-to-disable-interactions-ingame-when-inventory-is-open/475695/1 "2020-12-10T00:30:14Z")

</div>

I’m trying to figure out how to make it so when you open your inventory (Pressing “I”) you can’t move around in game, jump, shoot, aim until the inventory is closed (Letting go of “I”).

Is there a more simple way to do this or would I have to setup a branch for every action and connect it to “invisopen”.

Tried setting the Input mode UI Only to when you press I, but that did nothing.

Can add it to lock if at the end, but then I can’t get out of the inventory after that since no input is allowed.

 ![324422-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/7/dc757b59a3301b7ae28d7f13e71bf1d82054abdf.png)

 ![324423-untitled2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/d/8fdabfc8bec7750b1a5758722a9ca92f8aa7f06a.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 10, 2020, 8:44am UTC](https://forums.unrealengine.com/t/how-to-disable-interactions-ingame-when-inventory-is-open/475695/2 "2020-12-10T08:44:37Z")

</div>

Yup:

![324438-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/7/21784cf6c36d9b998d4e877c11792c45ddc522cc.jpeg)

---

<div class="post-metadata">

**Author:** ![miloCody](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@miloCody](https://forums.unrealengine.com/u/miloCody)\
**Post date:** [December 10, 2020, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-disable-interactions-ingame-when-inventory-is-open/475695/3 "2020-12-10T15:54:18Z")

</div>

I wrote this into my Open / hide inventory section at the end, but once the game pauses it is frozen! So once I let go of the “I” button to hide the inventory nothing happens besides the game being frozen still.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 10, 2020, 5:16pm UTC](https://forums.unrealengine.com/t/how-to-disable-interactions-ingame-when-inventory-is-open/475695/4 "2020-12-10T17:16:06Z")

</div>

Yes, so then you do it without the tick 🙂
