the first needle gun was invented by johann nikolaus dreyse in 1827 and i think it first massive use was during the battle of koniggrats in 1866