# How do you set a level to open a door once all pickups are collected?

**URL:** <https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 18, 2016, 6:14pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537 "2016-08-18T18:14:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KingDano12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KingDano12](https://forums.unrealengine.com/u/KingDano12)\
**Post date:** [August 18, 2016, 6:14pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/1 "2016-08-18T18:14:26Z")

</div>

I am having trouble opening a door once I collect all the pickups in my level, can anyone help. It’s a collect all the pickups to open the door to finish the level type game.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [August 18, 2016, 9:29pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/2 "2016-08-18T21:29:29Z")

</div>

Hey KingDano12,

Here is a project that will show you have to open a door once pickups are collected:

[https://drive.google.com/file/d/0B\_7mVza1uzD5ZUV5RFpQWVpuSlU/view?usp=sharing](https://drive.google.com/file/d/0B_7mVza1uzD5ZUV5RFpQWVpuSlU/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![KingDano12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KingDano12](https://forums.unrealengine.com/u/KingDano12)\
**Post date:** [August 19, 2016, 6:59pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/3 "2016-08-19T18:59:54Z")

</div>

Thank you. I was trying to make it so everytime you grab a pickup it adds 10 to a variable and once the variable is at 100 the door opens with a matinee. Is that possible or is it better to make it through a blueprint?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [August 19, 2016, 7:18pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/4 "2016-08-19T19:18:20Z")

</div>

Just change the amount set when you pick up a drop and increase the drop amount needed accordingly.

---

<div class="post-metadata">

**Author:** ![KingDano12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KingDano12](https://forums.unrealengine.com/u/KingDano12)\
**Post date:** [August 19, 2016, 8:12pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/5 "2016-08-19T20:12:14Z")

</div>

I am kinda new to this… how did you reference a blueprint with a variable in the gamemode blueprint…(I think that’s what you did there…) in the game mode blueprint on the left side of the screen it says _door_ and has a blue ball to the left of it…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_34443a7e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_34443a7e](https://forums.unrealengine.com/u/anonymous_user_34443a7e)\
**Post date:** [August 19, 2016, 11:21pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/6 "2016-08-19T23:21:41Z")

</div>

You can create a new variable and give it a blueprint actor/class type by clicking the variable type next to its name. Typically, I will just do a search for the blueprint type I need.

![103664-variabletypes2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/0/1c044e18474423697e26541c3bea64239fe75f5f.png)

Alternatively, if you already have a node that needs a specific blueprint type to plug into it, you can promote that empty pin to a variable of the exact type you need by right-clicking on the pin.

---

<div class="post-metadata">

**Author:** ![KingDano12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KingDano12](https://forums.unrealengine.com/u/KingDano12)\
**Post date:** [August 20, 2016, 2:50pm UTC](https://forums.unrealengine.com/t/how-do-you-set-a-level-to-open-a-door-once-all-pickups-are-collected/367537/7 "2016-08-20T14:50:26Z")

</div>

I figured it out but I am having two issues with the camera now…

1st When I pick up a collectible in an area where there is a camera set by a trigger volume it automatically changes the camera from the one its supposed to be on to a different camera actor…(multiple trigger volumes setting cameras for different locations in the level.)

2nd problem is when my player is killed by the enemy the game freezes if I play the animation and set a delay before loading a new level. If I take the delay out it will load the new level but the animation won’t play.

Any help with these? And thank you so much!
