Gun aiming up to sky or ground .. how can I level off y-axis to normal height?

gun aiming up to sky or ground … how can I level off y-axis to normal height and free aim ?