Opening and Closing Doors

Thanks it finally worked though i Dont really understand how exactly he was able to call the open and close door events cuz I also tried to call them, but they did not show up and he also had an open door and close door function as well, maybe that was the reason?

and is there any way to setup for how long my door will remain open?