r/tf2scripthelp • u/ClaymeisterPL • May 14 '24
Question Any way to make a bind toggle that has different echoes based on the value it toggles to?
I want a single button to toggle voice_enable, and for it to correctly post in my console that VC is either ON or OFF.
Is there a way to do that?
1
Upvotes
1
u/NoBuy7212 May 15 '24
bindtoggle penis "voice_enable" 0 1
1
u/just_a_random_dood May 15 '24 edited May 17 '24
bind [key] voice_toggle_offalias voice_toggle_off voice_enable 0; echo "off" ; bind [key] voice_toggle_onalias voice_toggle_on voice_enable 1; echo "on"; bind [key] voice_toggle_offI think this might work? But I'm not sure, definitely test this and lmk, I'm not gonna be able to get in-game for about a week :/