Holding down the fire button keeps the firing going. I can also spam the button, pause, spam with no problem.
The problem appears when i double click after the repeat delay is over and fires.
It’s a little bit tricky to reproduce, but my perfectionism keeps me away from saying “it’s ok”.
The red arrow from the delay fires right before i press fire.
This happens before the variable is set.
Any hints, help or ideas is greatly appriciated.
Thanks, Carl
I don’t know this looks a bit complicated just for a delay on shoot.
What i do is OnFire i set a CombatTimer to 1, and on EventTick when the timer is above zero, and then reaches a certain amount (adjust to your needs), the player can attack/shoot again.
I think i might not have explained what i was trying to achieve well.
I want to be able to shoot by both tapping and holding down the fire button. Any simple solution would not work smoothly. Examples: Tapping then hold would result in a double time lag before it started repeating. Fixing that resulted in being able to double tap when timed with the delay firing, etc.
Sorry if that didn’t make any sense