I do not see “Spawn” actor of class? What do you mean by not working anymore, it is not constructed to do something? The actor cannot have two parrent btw!
I see that there is no return value! The variables door and obstacle probably do not have an input. You should reference these or spawn and put them in these references.