Switching between multiply levels using one button
Hi! First I want to write that I'm total begginer in blueprint scripting I made a 4 levels, It's just simply room but each level has different lighting conditions plus options in postpro volume, when I press "play" I want to have opportunity to switch between these levels For example when I press "m" I want to switch to level02 when I switch "m" again to level03, etc. I made something like this but it only fires up a level02 and stops when I press "m" again, please help!
asked Dec 03 '17 at 08:15 AM in Blueprint Scripting
The way you have it set up it cannot work. Each level is effectively restarting the counter back to the first index - this is why it only works to level 2. Also, level blueprints are specific to individual levels - I would put this in the game mode blueprint.
You're gonna want to use Savegame objects: https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/
increment an Int variable and store it into the savegame object. Use the incremented variable to control the level loop.
Hope this helps. Read the documentation - it'll make sense.
answered Dec 03 '17 at 09:17 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here