r/tf2scripthelp • u/Mr_Piggens • Nov 14 '17
Resolved Attack bind causes you to constantly attack
Hello. =] I've been trying to play a sound whenever I attack. Here's a simplified, congruent piece of code: alias playSound "+attack; say X"; bind MOUSE1 playSound; Everything works fine except for the fact that "+attack" seems to start attacking, and not stop. "-attack" seems to end "+attack." "Attack" doesn't seem to do anything. I thought the default bind for MOUSE1 was, in fact, "+attack." The other command in the script ("say X" in this case) works just as intended, and only runs on left-click. What is the correct bind for this? This probably has a simple answer. -Mr. Piggens
View all comments
Show parent comment
1
u/Mr_Piggens Nov 15 '17
Oh, I get it now. So +alias means that it will continue executing until release. Thanks a lot, I really appreciate it. =]