Looking for a door prefab or how to script one

Hello! I’m kinda new to forging and looking for door prefabs in Halo 5 forge that open after a certain amount of time or, even better, doesn’t open until one spartan in a given area dies. Info on how to script one is appreciated as well.