r/Tf2Scripts • u/ColdGugyfy • Apr 06 '22
Question Does anyone have a command that lets me toggle voice chat and chat on and off with a single key?
I'm fairly new to tf2 configs and I hate toxic interactions at chat and voice chat and I just want to make one of my keys to toggle it on and off.
1
Upvotes
5
u/mechapotato1232 Apr 06 '22
bindtoggle (key) "voice_enabled 0 1"
2
u/kurokinekoneko Apr 09 '22 edited Apr 09 '22
PS : sry for being late, I didn't see your post before
1
u/mike_hawk_at_kfc Apr 12 '22
alias +voicechat_off "voice_enable 0;hud_saytext_time 0"
alias -voicechat_off bind [Key] +voicechat_on
alias +voicechat_on "voice_enable 1;hud_saytext_time 15"
alias -voicechat_on "bind [Key] +voicechat_off
as simple as possible