The majority of people with mental illness are not violent. However, a police officer is just as dead if shot or stabbed by a mentally ill person as by someone without a mental illness. What has happened is treatment, (including medication) is very, very difficult to compel legally. So, you may have a paranoid and psychotic person that is a danger to others. The person may have tried to self medicate with illegal drugs. It all starts with treatment, compassionate care, and consistent psychiatric care. Next, there should be additional training for police officers. However, police officers should not be required to sacrifice their lives because the person attempting to harm/murder them is mentally ill.