Each door managing it’s own status is possibly better, because it hides all the code in different places.
If you try and do it all in the level BP, by the time you finish the game ( think of how much stuff you have to remember the status of ), you’ll have the level BP from hell…
If you wanna do it in levelBP, you still have to give each door an array index, otherwise they don’t know which bit of the array belongs to them ( you just make an int on the door BP ).
If you do it in the door, you can just have a load of different variables in the save game ( ‘door_by_the_lift’, ‘door_by_the_stairs’ etc ).
If possibel Id def prefer it sorted in the door bp instead of the level one, the level bp will be filled with the weather system ill add later lol (mucch later(
You have to give each door an index which is where it lives in the array, and set it. You have to make the array manually. If you didn’t the code is even worse because you have to make the doors add their own element to the array if it’s not already there.
As you can see, much more messy. And you still can’t rattle though the array in the level BP and set all the doors, because a door can only be set when it’s level is streamed. So you might as well let the doors load their own status. That way you don’t have to worry about it.
thanks mate, sorry didnt reply sooner been a busy day, I’ll test this one and see which ones works best for me, this was all on the doors blueprint right?
Its not working, The doors open and the print shows it saves but it doesnt seem to load on begin play cause the doors all start closed again.
I made the bool an array in save and gave each door a different int number.