Another way to say "a machine gun is for killing the enemy." is "The enemy can be killed with a machine gun."