void main() { DelayCommand(20.0,ActionCloseDoor(OBJECT_SELF)); DelayCommand(22.0,ActionLockObject(OBJECT_SELF)); }