void main() { DelayCommand(30.0, ActionCloseDoor(OBJECT_SELF)); DelayCommand(10.0, SetLocked(OBJECT_SELF, TRUE)); }