According to ny.gov, the Red Flag law, also known as the Extreme Risk Protection Order law, prevents individuals who show signs of being a threat to themselves or others from purchasing or possessing any kind of firearm.
cite page 73 Appendix III: Potentially Averted Active Shooter Incidents