(CNN) A new law in Florida will allow paramedics to carry firearms when responding to shootings, drug raids and other high-risk situations.

Gov. Ron DeSantis signed the measure Friday . It says paramedics don't have to retreat and are justified in using force to defend themselves or others bodily harm.

The law takes effect July 1.

It identifies other such instances as dealing with an armed suicidal person and hostage situations.

Medical professionals carrying firearms are required to complete annual firearm safety training and tactical training, the measure says.

Read More