Dividing an animation into parts and doing different things in each part?

How would I achieve in dividing an animation into parts ( for example three parts ) and looping the exact same action in each part?

For example I have an animation that is about a model triple shooting with its guns. I would want to loop the “damage” function in every shot in the animation. However I can’t figure out how to do that and I can only shoot once every time the animation loops.

Any help would be appreciated!