Bizarre as it might seem, the police can take a person into custody, take them to a health care facility, and force them to undergo evaluation about their mental state.
If they are found to be a threat to *themselves* or others, they can be involuntarily committed.
302’d in PA
Baker Act in FL