| DarthMan |
06-20-2017 05:43 |
[ H3LP ] Check CVAR
Hey. Is there a way to execute something on cvar change without using a task that always checks the value? So, for example, when I set the max_checkpoint cvar to 0, if it was 1, I want to play a sound and same if it was 0 and I set it to 1, but not if the new value equals the old value, like if it was 1 and now ti is 1 as well. I know how to do it using a global var and cvar value check on a task, but I wouldn't want to use a task that repeats every second just for that. So, any way to do it using the default inc files? Thanks !
|