eg On a tank, there is the main turret, but on the side of the turret barrel there is a machine gun. Since the machine gun is mounted on the turret, wherever the turret points the machine gun points in the same direction.
Why can't this be done with a spud gun? See pic







