# Blueprint effecting multiple levels

**URL:** <https://forums.unrealengine.com/t/blueprint-effecting-multiple-levels/413124>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 26, 2017, 1:43am UTC](https://forums.unrealengine.com/t/blueprint-effecting-multiple-levels/413124 "2017-12-26T01:43:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pravok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pravok](https://forums.unrealengine.com/u/Pravok)\
**Post date:** [December 26, 2017, 1:43am UTC](https://forums.unrealengine.com/t/blueprint-effecting-multiple-levels/413124/1 "2017-12-26T01:43:10Z")

</div>

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

 ![225065-blue-lvl.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/f/f4f017ed91994a98d1444c0e16e4ad5dee9f55de.jpeg)

 ![225066-red-lvl.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/5/ee5ccbc287ae741000dd4f2e009495a26aa39554.jpeg)

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.

---

<div class="post-metadata">

**Author:** ![lkav](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lkav/32/983349_2.png) [@lkav](https://forums.unrealengine.com/u/lkav)\
**Post date:** [December 26, 2017, 8:10am UTC](https://forums.unrealengine.com/t/blueprint-effecting-multiple-levels/413124/2 "2017-12-26T08:10:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [December 26, 2017, 9:20am UTC](https://forums.unrealengine.com/t/blueprint-effecting-multiple-levels/413124/3 "2017-12-26T09:20:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Pravok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pravok](https://forums.unrealengine.com/u/Pravok)\
**Post date:** [December 26, 2017, 5:21pm UTC](https://forums.unrealengine.com/t/blueprint-effecting-multiple-levels/413124/4 "2017-12-26T17:21:22Z")

</div>

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