# Collect 5 objects to complete

**URL:** <https://forums.unrealengine.com/t/collect-5-objects-to-complete/117090>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 4, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/collect-5-objects-to-complete/117090 "2018-10-04T12:01:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paxie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paxie](https://forums.unrealengine.com/u/Paxie)\
**Post date:** [October 4, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/collect-5-objects-to-complete/117090/1 "2018-10-04T12:01:02Z")

</div>

Hello,

I need to make blueprint - if player collect 3 objects in level, it will open portal to another level. Can you aim me to some video tutorial? I couldn´t find something simple like this. If you will be so kind to show me something, i will be thankful.

Thank you

---

<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:** [October 4, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/collect-5-objects-to-complete/117090/2 "2018-10-04T13:45:01Z")

</div>

I do not know about a tutorial but perhaps this will get you started. I created a new actor with a default sphere (called \*Item \*here) and added this code to the first person template:

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/6/e6956f18c7f7e5f5044fb7595cfc1082116c920b.png)

When the player’s capsule bumps into something (_On Component Hit_), it checks what object it is via a cast. If it’s an \*Item \*object, it destroys it and adds 1 to the number of Owned Items (int). If the score is 3 or more, load next level.

While this is far from perfect, it’s worth experimenting with just to learn the ropes.

Good luck!

---

<div class="post-metadata">

**Author:** ![SB1985](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sb1985/32/1194527_2.png) [@SB1985](https://forums.unrealengine.com/u/SB1985)\
**Post date:** [October 4, 2018, 5:33pm UTC](https://forums.unrealengine.com/t/collect-5-objects-to-complete/117090/3 "2018-10-04T17:33:44Z")

</div>

Try this [Blueprint Game Framework Basics | Live Training | Unreal Engine - YouTube](https://www.youtube.com/watch?v=0LG4hiisflg)

---

<div class="post-metadata">

**Author:** ![mandango](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mandango](https://forums.unrealengine.com/u/mandango)\
**Post date:** [October 4, 2018, 10:41pm UTC](https://forums.unrealengine.com/t/collect-5-objects-to-complete/117090/4 "2018-10-04T22:41:19Z")

</div>

> [@Paxie](#):
>
> Hello,
> 
> I need to make blueprint - if player collect 3 objects in level, it will open portal to another level. Can you aim me to some video tutorial? I couldn´t find something simple like this. If you will be so kind to show me something, i will be thankful.
> 
> Thank you

You can collect different things in a level? If so you must have a Inventory System, I would do checking if 3 desired items are in the inventory after pick up each one of them
