Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

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.

Product Version: UE 4.12
more ▼

asked Aug 18 '16 at 06:14 PM in Blueprint Scripting

avatar image

1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey KingDano12,

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


more ▼

answered Aug 18 '16 at 09:29 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 18 128

avatar image KingDano12 Aug 19 '16 at 06:59 PM

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?

avatar image ImVawx ♦♦ STAFF Aug 19 '16 at 07:18 PM

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

avatar image KingDano12 Aug 19 '16 at 08:12 PM

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..

avatar image rbmiracle Aug 19 '16 at 11:21 PM

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.

alt text

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.

variabletypes2.png (65.7 kB)
avatar image KingDano12 Aug 20 '16 at 02:50 PM

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!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question