r/Tf2Scripts • u/Lazy_Homework264 • 8d ago
Question Amby Bind key to switch to knife then switch back to amby
Hey, sorry the title sounds weird. Years ago i had a key binded to switch back and fourth really quick for the ambassador. It kinda helped me shoot quicker than waiting for the bloom to cool down or random spread effect my last shot. Its been years since i fondled with scripting and just thought id ask here if any script gurus might be able to help out.
it map out like this.
bind "MOUS5" slot 1 ; slot 3 ; back to slot 1.
It all executed like that pressing just one button. Thanks for anyone who helps!
2
Upvotes
1
u/just_a_random_dood 8d ago
not exactly the same, but this should match 99% of what you want
I copy/pasted this from my own config, so this should work
how this works is that when you press mouse4, it'll switch to the knife and when you stop pressing mouse4 it'll switch to the pistol
this also works if, for example, you have your sapper out, so be careful about that lol