MaxCampbell
Member
Hi all, I'm attempting to write a script that will count the attacks the player makes in a certain state. More specifically, I need to track the number of mouse clicks while in the attack state and then halt any attack inputs once the counter is above 3. I'm aware of the object/event system, and that I can probably use a left click event for this, but I don't know how to code it. Can anyone help with this? Apologies if this has been covered before, I had trouble searching the forums for this issue because I wasn't sure how to phrase it exactly.