r/Tf2Scripts • u/reedworth • Aug 06 '18
Answered +attack not working with MWHEELUP/DOWN
+attack and other +/- commands don't seem to work with MWHEELUP/MWHEELDOWN when referenced via an alias.
These both work. I attack when I move the mouse wheel down, and I jump when I move it up:
bind MWHEELDOWN +attack
bind MWHEELUP +jumpThis doesn't work, though:
alias +test "+attack; echo foo;"
alias -test "-attack; echo bar;"
bind MWHEELUP +testThe echo calls register, but the +attack doesn't.
Is this something y'all have known about? Can others confirm this behavior?
Here's a screenshot after moving the mouse wheel up. Note that my character didn't jump:

4
Upvotes
View all comments
Show parent comment
1
u/LingLingLang Aug 06 '18
I tested it more and I see what you're saying.
features an implicit -attack that triggers after some kind of cooldown. While:
doesn't execute the implicit -attack, and then
never even executes the +attack.
I don't know why the introduction of an alias nullifies the implicit -alias on MWHEELUP. I need to tinker with it more when I have time.
That being said, there is an easy workaround if you're willing to use "wait".