help required!

hi folks!
i was going to add some binds to my movie cfg and as i know there the two commands "switch" and "toggle" i thought it was easiest to use them BUT i always mix up how to use them id like YOU to clear that up and give me an example for the syntax. thanks in advance!
[no random flags and no random and no random link cuz im liek serious]
Comments
3
np. AnonymousRöyksopp - So easy
togglecommand toggles the cvar setting on or off, e.g. toggle cg_drawroundtimer will put roundtimer either 1 or 0.
Example:

set ToggleTimer1 "cg_drawroundtimer 1; set nexttimer vstr ToggleTimer0"
set ToggleTimer0 "cg_drawroundtimer 0; set nexttimer vstr ToggleTimer1"
set nexttimer "vstr ToggleTimer1"
bind t "vstr nexttimer"

bind u "cycle cg_draw2d 0 1"
Back to top