// Put this script OnOpen. void main() { DelayCommand(20.0, ActionCloseDoor(OBJECT_SELF)); }