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 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.
asked Dec 26 '17 at 01:43 AM in Blueprint Scripting
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.
answered Dec 26 '17 at 08:10 AM
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.
answered Dec 26 '17 at 09:20 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here