Hide items when button is pressed

I am making good progress in my FPS game.

When I switch from 1st person view to aiming view. I want to hide the gun, only showing the crosshair. The cameras are set, I can switch back and fourth between the two. Z is aim, X is default. But when I press Z I’d like to hide the gun object, and when I press X show it again. Any ideas?

You could use the “Visibility” actuator?

or just make an animation that pushes the gun out of sight.

Perfect, learned how the Visibility works, I have it hide and show when I change cameras. Thanks!