I want to make it so, when beginning to hold click with my grenade equipped, it takes ~2 seconds (duration of pin pulling animation) before I'm able to throw it.
VIDEO: INTENDED RESULT
The easy answer is creating a variable that checks for when the first animation is done playing, and making it let me throw the grenade only if the variable is true. Self explanatory.
^^However, I can't do that. Why? Because exploiters can just change the boolean from false to true and bypass the 2 second wait.
^^It isn't that big of an issue, since the system isn't going to be used for a big 1000 active player game with exploiters constantly trying to find vulnerabilities, but it still bothers me that they can (perfectionism xd) and I'd like to fix it.
Does anybody have an idea on how I could go about this? I can provide additional information such as the script if necessary.
** You are now Level 21! **