Posted May 21, 20178 yr Hi, I have created a weapon with auto attack ability. When player holds attack key (left mouse button), the weapon automatically attacks as fast as possible, so no spamming is needed. I am using mouse event, that triggers whever the button is pressed or released and it works fine. However, the problem is when player pauses the game when auto-attacking. Then the game doesn't recognise, that the button was released and auto attack contiunes untill it's pressed and realsed again. Is there any simple way to solve this problem?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.