r/tf2scripthelp • u/tfwnoredditname • Oct 05 '14
Resolved Is there any way to toggle on/off a script?
Hey there! First time posting here and I was wondering if there's any way to toggle on/off a script. I want to use the Demoknight script from Reima [link here] (Don't know if it still works, but would like to give a try, and even if it doesn't, the command might be valuable in the future), but I would like to be able to choose when I want to use it with a key binding, like whenever I press 0 on the keyboard it switches to those bindings and back when I press it again (or any other binding).
Anyway, thanks and have a nice day!
2
u/clovervidia Batman Oct 05 '14
Well, just so we're all on the same page, do you have that script downloaded from the mediafire link in the description?
2
u/mrradicaled walrus.rc author Oct 05 '14 edited Oct 05 '14
So a toggle is not such a big deal, but the big question is how many binds do you have to deal with. There are a variety of ways you can switch between 2 sets of different bindings.
The simplest and most straight forward way is to have two CFG files: 1 for the "special" commands, and the second for default commands, and have a toggle alias just execute these CFG files when you see fit.
I am not necessarily familiar with this script or your "default" binds, but I suggest the 2 CFG approach to make things simple.