if (open == 0 && (lock == 0 || lock == 1 || (lock == 2 && other.smissile == 1))) event_user(1)