// close open doors after set time void main() { DelayCommand(20.0, ActionCloseDoor(OBJECT_SELF)); }