# How do you make it so you can hold a key for 10 seconds then something happens?

**URL:** <https://forums.unrealengine.com/t/how-do-you-make-it-so-you-can-hold-a-key-for-10-seconds-then-something-happens/348931>\
**Category:** Blueprint\
**Tags:** os-x, unreal-engine, editor, Blueprint, question\
**Created:** [February 28, 2016, 4:44am UTC](https://forums.unrealengine.com/t/how-do-you-make-it-so-you-can-hold-a-key-for-10-seconds-then-something-happens/348931 "2016-02-28T04:44:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackenstein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jackenstein](https://forums.unrealengine.com/u/Jackenstein)\
**Post date:** [February 28, 2016, 4:44am UTC](https://forums.unrealengine.com/t/how-do-you-make-it-so-you-can-hold-a-key-for-10-seconds-then-something-happens/348931/1 "2016-02-28T04:44:15Z")

</div>

How do you make it so you can hold a key for 10 seconds then something happens?  
Along side with that is there anyway to make a X mark on the map that you can see through walls and at any distance X is to represent where you must go then when you reach there you must hold down a button for ten seconds for something to happen. If anyone could help please do, thank you!

---

<div class="post-metadata">

**Author:** ![phoboz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phoboz](https://forums.unrealengine.com/u/phoboz)\
**Post date:** [February 28, 2016, 4:57am UTC](https://forums.unrealengine.com/t/how-do-you-make-it-so-you-can-hold-a-key-for-10-seconds-then-something-happens/348931/2 "2016-02-28T04:57:11Z")

</div>

To make object visible despite occlusion by other objects:

- Create Translucent material
- Under it’s properties find section **Translucency** , expand the advanced arrow and select **Disable Depth Test**

* * *

To make the button react after certain amount of time, try this:

![80246-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/0/d70615d231f4e65bc6fea481de4080da4c68f363.png)

---

<div class="post-metadata">

**Author:** ![Power\_animator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Power\_animator](https://forums.unrealengine.com/u/Power_animator)\
**Post date:** [February 28, 2016, 7:17am UTC](https://forums.unrealengine.com/t/how-do-you-make-it-so-you-can-hold-a-key-for-10-seconds-then-something-happens/348931/3 "2016-02-28T07:17:16Z")

</div>

instead of holding the key use delay set it for 10 seconds

---

<div class="post-metadata">

**Author:** ![phoboz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phoboz](https://forums.unrealengine.com/u/phoboz)\
**Post date:** [February 28, 2016, 2:24pm UTC](https://forums.unrealengine.com/t/how-do-you-make-it-so-you-can-hold-a-key-for-10-seconds-then-something-happens/348931/4 "2016-02-28T14:24:42Z")

</div>

Not quite, as it would still trigger if the user released the button
