Take a look at the map before you play it, there are two cubes ( doors ). They have a overlap volume which will raise them when you walk into it. There is also two larger level streaming volumes. The left hand one loads level1, right hand one level2. ( The levels also unload when you leave the volume ).
You can see when you walk up to either cube, it will ‘open’. Unless you have streamed that level before, in which case, it just sets itself to ‘open’ from the game instance. IE, it remembers it’s state from before.
Thanks mate this could be just what i need.
How would i go about saving this? which variables? should the save/load be done on the sub level bp or the persistent level bp?
thats what i want, so when the game quits you can load it up and everything remains how it was, but cant figure out where the save goes, tried it last night and it didnt work lol
it works!! huge thanks mate. After all the loooong tutorials i watched you made this simple and easy. And even helped me learn i dont need to save everything on the level blueprints lol
Sorry to be a pest but when one door is opened all the doors are marked as open. Does this need to new blueprint for each door?
I’m attempting to set up an array for it, am i anywhere close?
No problem. You have to do it just like all other BP code. You’ll notice you only have one bool there in the save game, so you can only save information about one door. If you want an array to save info on all doors, you need to have an array of bools in the save game.
Then you can use this kind of loop to load the start positions for all doors ( I’m assuming you’re doing this from the level BP ).
But you don’t have to use a loop in the level BP. If you put an int variable on each door, it can know which index of the bool array it needs to load from. Each door can still load it’s own bool in it’s on beginplay.
( If you don’t get it, just say, wont take a moment to mod the project )
lol now my brain is mush again, if branches dont work with arrays how can i set it to react properly? I bet im not even askin this right now lol i feel like a dunce