# How do I make a keystroke select a portal and then another keystroke select the object that will come out of the portal?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-keystroke-select-a-portal-and-then-another-keystroke-select-the-object-that-will-come-out-of-the-portal/414106>\
**Category:** Blueprint\
**Tags:** timers, unreal-engine, Blueprint, question\
**Created:** [January 9, 2018, 1:52am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-keystroke-select-a-portal-and-then-another-keystroke-select-the-object-that-will-come-out-of-the-portal/414106 "2018-01-09T01:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9ab89471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9ab89471](https://forums.unrealengine.com/u/anonymous_user_b9ab89471)\
**Post date:** [January 9, 2018, 1:52am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-keystroke-select-a-portal-and-then-another-keystroke-select-the-object-that-will-come-out-of-the-portal/414106/1 "2018-01-09T01:52:39Z")

</div>

I’d basically like to have three locations assigned to the keystrokes 1,2, & 3, and three objects assigned to the keystrokes a,b, & c. I’d like to be able to press 1, and then if I press a within let’s say 4 seconds, it will emit object a at location 1. Any ideas? I feel that this is probably very basic, but I’m a bit lost.

Thanks!

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [January 9, 2018, 2:20am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-keystroke-select-a-portal-and-then-another-keystroke-select-the-object-that-will-come-out-of-the-portal/414106/2 "2018-01-09T02:20:11Z")

</div>

The below blueprint script should work for you. Just replace the print strings with the actions you want done.

 ![226441-switch.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/e/74ed5967bf76d36a38f9f34cebd4e68585cce07e.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9ab89471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9ab89471](https://forums.unrealengine.com/u/anonymous_user_b9ab89471)\
**Post date:** [January 10, 2018, 6:47pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-keystroke-select-a-portal-and-then-another-keystroke-select-the-object-that-will-come-out-of-the-portal/414106/3 "2018-01-10T18:47:37Z")

</div>

Thanks a million!

Don’t hate me, but I’m still very new to the blueprint aspect, and don’t quite know what to put in place of the placeholders. I have 3 meshes shown below. I’d like to press 1 for location 1 (0,0,0), and then if I press a, b or c, within 4 seconds, it will drop item a, b, or c at location 1 (0,0,0). After 4 seconds, I can chose a new location like 2(50,50,0) or 3 (100,100,0), and repeat. I’m not sure how to set up the “portal” either.

Thanks again!

.

 ![226604-items-meshes.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/4/08450d8af59ce93c6d63f58ffa43470ca00343bb.png)
