# How to store level as variable?,How to save current level as variable?

**URL:** <https://forums.unrealengine.com/t/how-to-store-level-as-variable-how-to-save-current-level-as-variable/447735>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, CPP, question\
**Created:** [April 23, 2019, 10:21pm UTC](https://forums.unrealengine.com/t/how-to-store-level-as-variable-how-to-save-current-level-as-variable/447735 "2019-04-23T22:21:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [April 23, 2019, 11:02pm UTC](https://forums.unrealengine.com/t/how-to-store-level-as-variable-how-to-save-current-level-as-variable/447735/3 "2019-04-23T23:02:52Z")

</div>

You can store your levels as an integer variable in an “actor object” you place in each level. If you name each level (map) something like “LevelX” where “X” is a number then you can simply create an array of your level names, and use a get node with an integer for the level to select and open whatever level the player is on based on the integer variable saved to a save game object. Similar to this setup.

 ![275031-level-save-system.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/3/303702d46375e0ffad9713208c781b19e6540087.jpeg)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-store-level-as-variable-how-to-save-current-level-as-variable/447735)._
