I'm trying to make a persistent that turns off some settings when you're running around or killing monsters and turns them back on when they're standing still.
Basically, this is how the code looks like
if (standtime > 2000) then
turn settings on
turn settings off
The settings are always off, and the problem appears to be with the standtime variable. I displayed standtime in my hud to see how the variable works, and for whatever reason it's constantly 0. I don't know if I'm doing something wrong or if standtime just isn't working. If anyone can help, I appreciate it.