//Put this onOpen void main() { // Delay then close the door automagically DelayCommand(15.0f,ActionCloseDoor(OBJECT_SELF)); }