Hey there @Lingorahm! Welcome to the community! A simple implementation would be done the same way you implement a “Three round burst” mechanic. I’d recommend studying one of the many threads on the mechanic or a video going over it. This video goes over multiple fire modes of a weapon, you’ll have to adapt it a bit to your needs.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.