In this video, I go over how to use UE4's Anim Montage Editor to combine animations together and "program" some basic functionality for a door skeletal mesh. This is such a powerful and under-utilized portion of the editor.
Download my sample door mesh here: https://drive.google.com/file/d/15qzX...
You'll need to install the Starter Content for the materials.