How do you make a door close then load a level then open the door again?

Hello!

So here is the thing, I am trying to make an elevator door close and then it will load a level and open the door again. But the door either doesnt close at all or the door closes long after the level have been loaded. Just some facts: I am using timelines, everything is in the level blueprint and i am trying to make it so you can go to different levels by clicking different buttons in the elevator.

Do you one timeline for the door closing and one for the door opening? You might need to post an image of your current blue print set up.

You would need to close the door in your blue print first using the timeline and then (after its completed) load your level using the Load Level node. You should then be able to use the door animation again to open once the level is completed loading.

Well i use one for opening and then i just reverse it… but anyways here you can see(Sorry that it is so pixelated) my timelines and my opening door “sequence”

Yes they do

Yes it does

Different Maps

So first things first … if you only have the door animation connected do the doors close as expected when you press the elevator button?

If you now just disconnect the doors part and connect the level loading and unloading … does it work as you expect?

Are you using levels within your persistent level or different maps?

Although its not clear from your screen shot how the timelines are wired up inside of your reverse and play functions, I am guessing that the function is returning execution to the next node before the animation is complete and therefore your level begins to load before the doors closed and then its a timing issue based on who finishes first.

If you copy the innards of your reverse function into your main blueprint and connect the “finished” node on your timeline to the load level does that make a difference?

Oh wait no levels within persistent level

Well that worked pretty well Thank you!.. but now comes the biggest problem what would i do when i want to unload the current level and load in a new one?

Arent we currently talking about closing the doors, loading the new level and then unloading the old level?

No, i dont mind helping … i mean i thought we are talking about how to do that already in your original question.

You have the current level unloading and the new level loading working already or not?

I thought you just had a problem with the doors opening and closing at the correct time

Well yes… but i thought that you are someone that might have an idea, so why not just ask

Well here is the “Story”, you start in an elevator and you can go into levels. So first there is nothing behind the doors and then it loads in a level that i can after that unload and load in a new one. so the doors start closed and then open(Sorry probably should have mentioned that).

and yes the doors work perfect for now

So if you start in the elevator with doors closed (ie. thats how they should be in your level editor before you hit play), you can have your first level load in the construction script … just load whatever level should be there at startup with block on load set to true, you can then open the doors or have a timer before they open.

Then your current process for pressing a button and triggering door closing, unload current level, load new level, open doors seems to be ok …

Am I missing something?

So you will have a different key for each level or an interactive elevator panel?

Well no that is about it, but you are supposed to be able to have a list on the wall that you can choose which level you want to got to. I am basically making an interactive portfolio

An interactive elevator panel