Having trouble with cooldown resets

Question/Tutorial

SB6WW

Here's a link to some pics of the code for anyone who doesn't want to check in overwatch.

​

So, I'm trying to make the interact key work like an ability and have it slow down time for the players. I have it working (somewhat) but for some reason when the cooldown resets, it takes 1 extra second off and breaks the ability. I don't really have any previous coding experience so I'm not 100% sure why it's breaking. Any help is appreciated, even if it means scrapping it all and redoing.

Posted Jun 4, 2019, 3:12 PM UTC

23
Loading comments…