# How to make working key?

**URL:** <https://forums.unrealengine.com/t/how-to-make-working-key/467900>\
**Category:** Community & Industry Discussion\
**Tags:** key, beginner, unreal-engine, question\
**Created:** [July 9, 2020, 11:03am UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900 "2020-07-09T11:03:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 9, 2020, 11:03am UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/1 "2020-07-09T11:03:00Z")

</div>

Im a beginner and trying to make a puzzle game. in the game, you have to put a key (a simple physics object) in a box beside the door. I want it to be when you put the key in the box, the character will load to the next level. if anyone knows how to do that, please help…

---

<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:** [July 9, 2020, 11:12am UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/2 "2020-07-09T11:12:41Z")

</div>

You’ll need to show what you have so far, otherwise I don’t know where to start.

Do you have BP for dropping the key?

EDIT: So it’s a physics object ( I was that in email, but it never made it here ). How do you know when the player puts it in the box?

---

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 9, 2020, 11:22am UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/3 "2020-07-09T11:22:49Z")

</div>

So, I basically set out a raycast to detect physics objects and picks them up. The key is just a physics object, it has no blueprint

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 9, 2020, 12:39pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/4 "2020-07-09T12:39:53Z")

</div>

Place a trigger volume inside the box, and On Begin Overlap check if the overlapping object is your key. Either make the trigger only overlap a certain collision type, or just add a specific actor tag to your key and make the trigger check if Other Actor =\> Has Tag [_your tag name_].

---

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 9, 2020, 12:43pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/5 "2020-07-09T12:43:43Z")

</div>

(for the EDIT:) I dont know yet actually. That’s what i m trying to find out. Sorry, Im a complete beginner.  
Maybe a trigger box could work, but idk

---

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 9, 2020, 1:01pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/6 "2020-07-09T13:01:03Z")

</div>

Ok, so on my trigger blueprint, drag off the exec to cast to (the key)? and connect the overlapped actor, to the object on the key?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 9, 2020, 1:41pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/7 "2020-07-09T13:41:28Z")

</div>

You got me all confused. You can’t cast to the key if it’s just a physics object with no blueprint. I’d personally do it this way: add an Actor Tag “Key” to your key. Place the Trigger in the box. In the Level Blueprint, create On Actor Begin Overlap (Make sure your trigger is selected in the level, then when you type in On Actor Begin Overlap and select it, it will be created for your trigger). And then just this:

 ![306661-overlap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/9/8e9a88163cdc34c35af647adc4e1e03451620987.png)

---

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 9, 2020, 1:49pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/8 "2020-07-09T13:49:01Z")

</div>

My cast is set to pick up any physics objects that is encountered. Sorry I just started 2 days ago. here is the blueprint on my chartacter that enables me to pickup physics objects.

 ![306637-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/8/d987cda85719e703f7d3d291069b4118d17363e1.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 9, 2020, 2:03pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/9 "2020-07-09T14:03:27Z")

</div>

Oh, you mean “cast” as casting a line trace? That’s not what I thought =)

Anyway, your picking up setup seems just fine, but it has nothing to do with the box and the trigger.

Look up some tutorials on triggers, if something is confusing. The videos will explain it better.

---

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 9, 2020, 2:10pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/10 "2020-07-09T14:10:47Z")

</div>

Yeah, i’ve searched up tutorials and still will, but do you know how to trigger it with an object instead of the charachter?  
EDIT: but thanks though

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [July 9, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/11 "2020-07-09T14:35:07Z")

</div>

Take a look at my screenshot above. That’s the setup how to make trigger work ONLY with a specific actor, in this case the actor that has a “Key” tag. Just make sure their collision presets don’t ignore each other; but by default they shouldn’t.

---

<div class="post-metadata">

**Author:** ![WickahooIsMe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WickahooIsMe](https://forums.unrealengine.com/u/WickahooIsMe)\
**Post date:** [July 10, 2020, 6:24am UTC](https://forums.unrealengine.com/t/how-to-make-working-key/467900/12 "2020-07-10T06:24:54Z")

</div>

Thankyou so much!!. This helped alot
