I'm trying to create a bind for my
autoexec.cfg, where I toggle the
bindtoggle "F1" "voice_enable"
works, and will be translated to
bind "F1" "incrementvar voice_enable 0 1 1"
So, as I said, this works. But I'd like to get some visual feedback (ingame) on the current variable.
The only visual feedback I know would be to say something in chat (maybe there is a better way, if yes, please tell me)
So I'd like to switch the command to something like this
bind "F1" "incrementvar voice_enable 0 1 1; say_team voice: voice_enable"
But as you can imagine, in chat it writes:
So my question is, can I read the current value for this variable and print out the variable? So the say command would print something like
voice: 1 or