Hacking the nervous system

An early milestone on the path to reverse engineering the brain for the purposes of Artificial Intelligence and achieving the singularity is hacking the nervous system for military purposes. The simplest aspects are using electromagnetic beams to trigger various nerves to create pain, feeling cold or hot or other sensations. Next would be trigger muscle responses for Taser like effects or other actions. More complicated would be to create and then control hallucinations.