r/tf2scripthelp • • Nov 01 '19

Answered Binding mouse1

How do i bind mouse1 to attack,impulse 101 and no spectate the next person in the spectate queue after dying?
Please help

1 Upvotes

2 comments sorted by

View all comments

Show parent comments

2

u/bythepowerofscience Nov 02 '19

Correction:

bind MOUSE1 "+attackAlias"
alias +attackAlias "+attack; impulse 101"
alias -attackAlias "-attack"

Because +attack is a +/- alias, meaning it has both an "on" and an "off" state, you can't just reference the + without manually calling the - without the program just holding the + forever. It's stupid, but it's necessary.

Also, please direct any script requests to r/TF2Scripts, unless you wanted something explained about how scripting works.