I'm trying to create a mod that involves various guns and crossbows. I wish to make it so that a player needs to reload after taking a shot or multiple shots, depending on the weapon.
My current idea is to make it so that after firing a weapon a certain number of times, there is a pause in which you cannot fire your weapon to simulate reloading.
Problem is that I don't know how to make that happen. Can anyone lend me some help on noodling out this problem?