void main() { DelayCommand(50.0, ActionCloseDoor(OBJECT_SELF)); SetLocked(OBJECT_SELF, 1); }