void main() { DelayCommand(600.0, ActionCloseDoor(OBJECT_SELF)); DelayCommand(600.5, SetLocked(OBJECT_SELF, TRUE)); }