# Dialogue shows on certain range, how can I make it be shown on button press?

**URL:** <https://forums.unrealengine.com/t/dialogue-shows-on-certain-range-how-can-i-make-it-be-shown-on-button-press/478370>\
**Category:** Blueprint\
**Tags:** dialogue, unreal-engine, Blueprint, question\
**Created:** [February 7, 2021, 6:49am UTC](https://forums.unrealengine.com/t/dialogue-shows-on-certain-range-how-can-i-make-it-be-shown-on-button-press/478370 "2021-02-07T06:49:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_UI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nick\_UI](https://forums.unrealengine.com/u/Nick_UI)\
**Post date:** [February 7, 2021, 6:49am UTC](https://forums.unrealengine.com/t/dialogue-shows-on-certain-range-how-can-i-make-it-be-shown-on-button-press/478370/1 "2021-02-07T06:49:07Z")

</div>

Dialogue shows when I approach NPC, how can I make it so dialogue would instead be shown on button press?

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [February 7, 2021, 6:05pm UTC](https://forums.unrealengine.com/t/dialogue-shows-on-certain-range-how-can-i-make-it-be-shown-on-button-press/478370/2 "2021-02-07T18:05:57Z")

</div>

I assume you currently have it set to just show the dialogue on overlap?

Instead, you could have the overlap just set a variable for the NPC that you overlapped. Then you could put all the dialogue logic on an input event that uses that variable that you set from the overlap. That seems like it would work. 🙂

---

<div class="post-metadata">

**Author:** ![Nick\_UI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nick\_UI](https://forums.unrealengine.com/u/Nick_UI)\
**Post date:** [February 10, 2021, 2:21am UTC](https://forums.unrealengine.com/t/dialogue-shows-on-certain-range-how-can-i-make-it-be-shown-on-button-press/478370/3 "2021-02-10T02:21:16Z")

</div>

Thank you, will try that!
