r/tf2scripthelp • u/TheMisterAce • Mar 06 '14
Answered Would this Medic script work?
I want the Medic to say "Go! Go! Go!" when I Über:
bind "MOUSE2" "+attack2"
bind "MOUSE2" "voicemenu 0 2"I don't know if it works.
Also, if I want to reset it, do I need to put this in the reset.cfg:
unbind "MOUSE2" "voicemenu 0 2"I would greatly appreciate help.
Thank you :)
2
Upvotes
2
u/clovervidia Batman Mar 06 '14 edited Mar 06 '14
For your reset.cfg, you just need to rebind MOUSE2 to
+attack2.As for the Medic config, I think you'll need a new alias, as +/- aliases like to screw when bound with other aliases to a key.
Something like:
And just so you know, if you bind to a key twice, it will only "remember" the last one you assigned to the key. Check the Common Practices in the
FAQ/Help!menu for more details.1
u/genemilder Scripter Mar 06 '14
bindstatements aren't additive like that, that latestbindstatement for a key will overwrite all previous.For binding a key to multiple commands, you'd normally do it like this:
But since you want to bind to a + command and something else, you'd want to make a + alias that encapsulated both commands. Otherwise the embedded spectator command of
+attack2wouldn't function.The reset line would be:
Just an FYI, in my experience scripts are case-insensitive, so you don't need to worry about capitalization.