Making an object visible/invisible

So,I’m trying to make a fps and I’m pretty new to unreal and I was wondering;how can I make the gun appear only when I press a certain key/mouse button?

I don’t want the player to see the gun when the key isn’t pressed,like in the second image

1 Like

Why would you try hide an actor when clearly the weapon is a component ?

I’m assuming you are using sockets on a mesh which is attached to a skeletal mesh.

Regardless, I prefer setting to Hidden rather than setting the visibility due to performance and reliability with the node.