Door animation blueprint

Hi,
I have a door which has opening and closing animation created in Maya. Let’s say the door opening animation takes 5 seconds to open and then closing takes 5 seconds. I want to press a key from keyboard and the door should open and take its 5 seconds time.

But, while opening, if I again press the button to close the door it shouldn’t do anything. It has to continue opening until it finishes and takes the time 5 seconds. It cannot glitch its animation in the middle of opening or closing.

How to create such blueprint? Please help me with this.

(Please do not suggest me to create the door animation inside unreal. I want to use Maya animation inside Unreal and interact with the door using blueprint)
Thank you

Quick example:

](filedata/fetch?id=1839202&d=1607101213)

PS: don’t forget to set the animation mode of the skeletal mesh component to “Use Animation Asset”:

2.jpg

That was very quick response ! Thank you so much ! Let me check it out. :slight_smile:

It worked ! Though there are other settings need to be correct beside the blueprint nodes, its finally solved ! (For those future users who wants the same output, I’ve added some screenshots)
Thank you so much !