Not sure I understand your question.. Do you mean something like this?
Sorry prabably because my english is not very well
After repeat 10 times gun should be destroyed BUT not earlier
when i set repeat X times
Events should wait for last bullet fired