# Blueprint issues

**URL:** <https://forums.unrealengine.com/t/blueprint-issues/747947>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 12, 2023, 5:03pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947 "2023-01-12T17:03:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graeme\_VR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graeme_vr/32/615812_2.png) [@Graeme\_VR](https://forums.unrealengine.com/u/Graeme_VR)\
**Post date:** [January 12, 2023, 5:03pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/1 "2023-01-12T17:03:31Z")

</div>

Hi, I’ve created a shoe stand BP with shoes on it. When player approaches shoe stand a trigger box is triggered and the player is rendered stationary, cannot move and a mouse cursor appears. This gives player a chance to choose shoes with cursor without interfering with player movement. If the player wants to move away from shoe stand, or be released and be able to move again they just click right mouse button. This will release player and hide mouse cursor. Please see attached trigger box BP. This BP seems to work up to a point. Once the player crosses the trigger box they do stop moving and mouse cursor appears, but nothing happens when I click right mouse button, and therefore player cannot be released and walk away. Anybody know how to fix this or a better way to do this, thanks.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/6/346555dbb48425886cac5b75b6c4e4d4c38bf12c.jpeg)

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [January 12, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/2 "2023-01-12T17:24:25Z")

</div>

Hi Graeme,

If you’re doing this inside of a Blueprint, you’ll need to explicitly allow the Blueprint to receive input events.

In the Blueprints ‘Class Defaults’ section try setting “Auto Receive Input” to ‘Player 0’

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 12, 2023, 5:58pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/3 "2023-01-12T17:58:32Z")

</div>

Are you going to make more of those triggers? If you keep enabling input in actors, it may become unmanageable at some point.

* * *

How about you create a custom event in the player controller / pawn and have the shoe box trigger call that:

- pawns & controller already handle input
- you’d need to script it only once rather than for every object that needs to interrupt the player

I’d put this in the PC, seems like it belongs there - unless the Pawn is also using RMB for something else. Then I’d have in the Pawn.

* * *

And yet another way is to have the player detect what they’ve run into rather than rely on the shoe box.

---

<div class="post-metadata">

**Author:** ![Graeme\_VR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graeme_vr/32/615812_2.png) [@Graeme\_VR](https://forums.unrealengine.com/u/Graeme_VR)\
**Post date:** [January 12, 2023, 6:23pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/4 "2023-01-12T18:23:34Z")

</div>

Thanks for the reply, I am doing this inside Blueprint, how do I allow the below blueprint to receive input events? Where is the Class Defaults section ?

---

<div class="post-metadata">

**Author:** ![Graeme\_VR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graeme_vr/32/615812_2.png) [@Graeme\_VR](https://forums.unrealengine.com/u/Graeme_VR)\
**Post date:** [January 12, 2023, 6:25pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/5 "2023-01-12T18:25:17Z")

</div>

Thanks for the help. I am only making one trigger which will be copied to multiple Shoe stands. I will try put in Player controller. Thanks

---

<div class="post-metadata">

**Author:** ![jigoku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jigoku](https://forums.unrealengine.com/u/jigoku)\
**Post date:** [January 12, 2023, 6:26pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/6 "2023-01-12T18:26:11Z")

</div>

It seems that after you enter the trigger box, you disable the player’s input, so you click the right mouse button and nothing happens.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 12, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/7 "2023-01-12T18:28:14Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/b/0eb6d3e7493fae5bda0fd5f328462f20e3f409e0.png)

But I can’t recommend this approach. Good luck all the same, though.

---

<div class="post-metadata">

**Author:** ![Graeme\_VR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graeme_vr/32/615812_2.png) [@Graeme\_VR](https://forums.unrealengine.com/u/Graeme_VR)\
**Post date:** [January 12, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/8 "2023-01-12T18:28:23Z")

</div>

Yes that makes sense, so you mean if I disable the players input, then I wont be able to use any keys cause all disabled? Cause I did try other keys to press instead of Right mouse button and none of them worked.  
Anyway I can fix this or maybe use some other nodes in BP?

---

<div class="post-metadata">

**Author:** ![Graeme\_VR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graeme_vr/32/615812_2.png) [@Graeme\_VR](https://forums.unrealengine.com/u/Graeme_VR)\
**Post date:** [January 12, 2023, 6:30pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/9 "2023-01-12T18:30:37Z")

</div>

nice one, that worked. Now I can release the player with the right mouse button. Why do you not recommend this approach?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 12, 2023, 6:38pm UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/10 "2023-01-12T18:38:53Z")

</div>

> [@Graeme\_VR](#):
>
> Why do you not recommend this approach?

It often makes things really complicated in the long run, you’re risking creating a small debugging nightmare.

Lets say you enabled the input, as you did. You actually enabled it in **ALL** triggers, you click once and all triggers run their scripts.

And if you want to evoke RMB elsewhere… now you cannot because the triggers consumed it. You can disable consumption, ofc, but if the player now RMB to _Crouch_ (let’s say), it will fire all triggers anyway… because they can still use it.

There is a reason why the input is disabled. Not to mention the fact that you’re allowing actors to fiddle with the player controller. It’s just not that good practice.

* * *

Do ignore the above micro-rant if you own a single shoe rack only (like me!) and have no other plans for the RMB. 😇

* * *

Have a look here:

> [@Close menu with same button as opening](https://forums.unrealengine.com/t/close-menu-with-same-button-as-opening/485710/10):
>
> Not stupid at all, actually. It’s just an input processing thing. Set Input Mode UI Only prevents the Player Controller from processing input - pressing M while this mode is active does nothing, the PC ignores it, as instructed. The input is processed in the widget instead since we’ve given it to the UI exclusively - Set Input Mode UI Only You can have it processed by both (widgets go first, though) with Set Input Mode Game and UI node but if you’re making a first person shooter kind of game (…

Imagine that instead of M, the player overlaps the trigger and the widget overrides RMB.

---

<div class="post-metadata">

**Author:** ![Graeme\_VR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graeme_vr/32/615812_2.png) [@Graeme\_VR](https://forums.unrealengine.com/u/Graeme_VR)\
**Post date:** [January 13, 2023, 7:27am UTC](https://forums.unrealengine.com/t/blueprint-issues/747947/11 "2023-01-13T07:27:32Z")

</div>

Thanks alot again for all the help, very much appreciated
