void main() { // Automatically close the door after it was opened if it's not bashed in if (GetLockKeyTag(OBJECT_SELF) != "door_Bashed_NoKey") DelayCommand(12.0, ActionCloseDoor(OBJECT_SELF)); }