Another way to say "a machine gun is for killing the enemy." is "A way to kill the enemy is by a machine gun."