How do I make it so the weapons that is part of the mesh fire?

ShooteGame has good example how to make a weapon and shot that weapon.