BINDTOGGLE
This command assigns a hotkey (key on your keyboard, or button on your mouse) to switch through the various values a specified console command has (when pressed or clicked). This is useful for setting up binds that toggle a certain feature. For example,"voice_enable" would be toggled between 0 and 1 (disabled and enabled).
Description
This command assigns a hotkey (key on your keyboard, or button on your mouse) to switch through the various values a specified console command has (when pressed or clicked). This is useful for setting up binds that toggle a certain feature. For example,"voice_enable" would be toggled between 0 and 1 (disabled and enabled).
How To Use BindToggle
- Enable the developer console in Counter-Strike settings.
- Open the console with the tilde key (
~). - Enter
BindToggle [Bind Key] ["Bind Command"], replacing bracketed arguments with the value you want, then press Enter.
This legacy command is not currently listed as compatible with Counter-Strike 2.
Syntax And Arguments
| Bind Key | This is the key you want to assign your bind toggle command to. |
| "Bind Command" | The console command you want to assign to the hotkey. Be sure to enter it without any numbers/values after it. |