Timer isnt Looping for specific Character

I’m working on implementing an event that occurs after button held for x amount. However, one of my Characters BP’s (in multiplayer game) will not properly repeat a simple timer. I copied the exact script to the other Character BP and it works perfectly. I have tried in both Host and Client situations - same result so replication doesn’t seem to be the cause. Also, other timers in this BP work perfectly with basically the same functionality.

Timer:

Function:

While playing as the second character, Print String counts up 1, 2, 3, 4… every second. However, while playing as first character, a “1” string is printed every second. Thoughts?

Your “Interact Key Hold” variable is replicated. You should either remove replication or increment it on a server side. It will not affect increment on a client side.

Hey, Flash. Thanks for the thought. On both character BP’s it is Replicated. On second character it loops correctly as both client and server. On first character, it does not when I play as either client or server. Additional thoughts?

In general I don’t like a fact that you set replicated variable on a client. I would suggest to use switch Has Authority to make sure that you increment only on a server side. Also, what you can try, instead of using a timer function you can try to use event.