door opening script: new approach and object attributes