Timer that resets upon player input

I think it’s better to use actual timers rather than delays. Timers automatically reset if you try to set a timer when a previous instance of that timer is already playing. That should be just what you are looking for.

Hi there. I’m hoping someone can help me set up a timer that when the player attacks either melee or ranged it resets a timer in the movement code. Currently I have a delay set up so the character just rotates after 0.5 seconds.
The idea is to allow the player to walk backwards and start a timer, then if the player attacks before the timer expires then it resets. Basically as long as the player attacks they will not rotate.

Could you provide an example ?
I haven’t really used timers before and the documentation isn’t really helping me.