When I spawn and snap an actor to another one, my cam is switching

Found the solution after some time. Had to set the collision of the cannon to “OverlapOnlyPawn”.