if (instance_number(oMonster) == 0) { with (oDoor) lock = 0 }