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 to stream two levels from HUD?

Hello Everyone,

I currently have my Blueprints set up so when the character/player overlaps with a trigger volume it will load the second level. This works perfectly using:

Trigger Volume:

alt text


alt text

However, I'm having difficulties loading level 3. I can't duplicate it all and then change the variables etc, this doesn't work. How can I spiral off here to let me load a different level?

alt text

alt text

Thanks for any help!


PS: Sorry if this has already been answered, I have looked around but didn't find an answer.

Product Version: UE 4.10
1.png (294.3 kB)
4.png (119.9 kB)
2.png (126.0 kB)
3.png (130.1 kB)
more ▼

asked Jan 12 '16 at 11:58 PM in Blueprint Scripting

avatar image

1 2 5

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

1 answer: sort voted first

Going your way, you simply add another branch, and then on 'Loading == FALSE' input it to the second branch (with Loading Tavern connected) and if the second is TRUE then do similar thing you did previously, but type there different level.

I'd do it differently but let's not over complicate, from my understanding all you really need is just a basic bool logic.

more ▼

answered Jan 13 '16 at 09:19 AM

avatar image

374 13 10 25

avatar image Enxa Jan 13 '16 at 11:33 AM

I can't get this to work. Having something connected to false makes the game and engine immediately crash when I try to run it. And I can't have another branch node as only one can be connected

avatar image vipeout Jan 13 '16 at 12:36 PM

Then paste the crash. It's not crashing because something is simply connected, it means you're connecting something that breaks the game - ie. load level that does not exist (shouldn't crash but who knows).

Could you post a picture of what you changed and how does it look when it crashes? I mean the node connections.

If you don't want to make another branch, you can make this variable an enum instead. Make an Enum in the content, give it several values like 'LoadingMain', 'LoadingTavern' etc. and then switch based on that.

avatar image Enxa Jan 13 '16 at 03:58 PM

I don't get an error message, it just goes non responding and closes :( I have started again and seem to have this.

alt text

However, how do I get the bool var in the trigger to work with the HUD? I can't find it.

alt text

5.png (146.2 kB)
6.png (71.6 kB)
avatar image vipeout Jan 14 '16 at 07:23 AM
  1. Why is it in the HUD? Why does HUD decide what to stream and not?

  2. You should add the variable in the same place and way you added the previous one. If the variable is not in the Mystic Char blueprint then you're not gonna get it. It's obvious.

  3. You have a branch that goes like this: "If loading ruins is false, then open level ruins and set loading ruins to true" - where does that make sense? is it simply poor naming or are you really loading a level here?

  4. When loading ruins is true then load castle and set loading castle to true - this doesn't make any sense either.

avatar image Enxa Jan 14 '16 at 12:37 PM

I put it there so I can draw to hud a loading screen material.

It is in the blueprint which is why I'm confused as to why it won't appear.

Why are you being so hostile? I'm clearly knew at this...

avatar image vipeout Jan 14 '16 at 01:12 PM

That much I've figured after the first post and decided to try helping you. If you really believe that what I've written is hostile then I'm sorry to break it to you, but I'm not. I've just asked honest and straightforward questions that I thought may help narrow the issue down.

And since you ignored most of them I can't really help as much as I wished I could. But let's not derail too much.

If I wanted to fake a loading screen through BP's then I'd make a widget that covers whole screen and simply turn it on/off when needed. One variable, no need to override default HUD, no need to cast to character. All you need to do is store the reference to this single widget somewhere (let's say Player Controller) and control it each time anything loads.

The trigger will know what level it streams, but the widget does not have to, unless you have several different loading screens for each level. If so, then you'd pass an int that would be ID of the loading screen you wish to show.

(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