<<
bind dpad_left "fast_restart"
set TEST "code; code; code"
vstr TEST
bind DPAD_DOWN "vstr TEST"
toggle bg_maxjumpheight 999 500 0
, but hopefully you get the point.
bind dpad_left "fast_restart"
set TEST "code; code; code"
vstr TEST
bind DPAD_DOWN "vstr TEST"
toggle bg_maxjumpheight 999 500 0
, but hopefully you get the point.
bind dpad_left "fast_restart"
I do believe the double-quotes are optional, but its good practice to use them.
set TEST "code; code; code"
You can then run a variable string with the command "vstr"
vstr TEST
Any command can be in a variable string, so you of course can run a vstr command in a variable string itself.That is how mod menus in CFG actually work.
bind DPAD_DOWN "vstr TEST"
On the topic of dvars, you can set a dvar value with set. You can also toggle a dvar value as well. When toggling, you can switch between upto 3 values.
toggle bg_maxjumpheight 999 500 0
Sorry if thats not the correct dvar
, but hopefully you get the point.Copyright © 2026, NextGenUpdate.
All Rights Reserved.