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"

Blueprint effecting multiple levels

So i want to create a game with two levels that are "connected" via a teleporter (simple load level actor blueprint) so the player can solve puzzles, simple example shown here with a ramp that is only in the correct orientation in the red level alt text alt text My question is how can i make a blueprint/even that can effect both levels. For example how would i go about creating a door that when i open it, it also opens in the other level, that way i can create shortcuts and different ways the player can interact with the level.

Product Version: UE 4.18
blue-lvl.jpg (955.3 kB)
red-lvl.jpg (416.4 kB)
more ▼

asked Dec 26 '17 at 01:43 AM in Blueprint Scripting

avatar image

9 5 5 9

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

2 answers: sort voted first

You can do that in the game instance BP. It persists. And when you open the other level you can fire an event which checks if there is an update or your BP cast to the Game instance BP to check which state they have.

Let's say in the game instance BP is a boolean variable called "doorOpen?" and your door BP will check if that is true or false and behave differently.

more ▼

answered Dec 26 '17 at 08:10 AM

avatar image

1.4k 9 5 10

avatar image Pravok Dec 26 '17 at 05:21 PM

Thanks! I just cast to game instance from level blueprint to check for the variable and it worked.

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

Hey there, it kind of depends on you are doing the level loading. If you loading the level instances on the same world using level atreaming, then you just keep state of things in your character. If you go to other levels with open level yhen you need to use the gameinstance to store that information, because it persists throughout the entire application lifetime.

more ▼

answered Dec 26 '17 at 09:20 AM

avatar image

6k 161 129 304

(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