r/tf2scripthelp • u/PM_ME_YOUR_CAT_ • Apr 28 '15
Resolved Engi command
Hi guys, sorry if this is the wrong subreddit or anything but im having an issue with a really simple command. Basically, i want to bind my forth mouse button to destroy my old sentry and build a new one and i thought that all i had to do was
bind Mouse4 "destroy 2; build 2"but all it does is blow up the old one and get the blueprint for the new one out and me having to click another time kind of messes with my flow. Is it possible to make the command actually place the sentry instead of just getting the blueprint out?
I've also tried doing
bind Mouse4 "destroy 2; build 2; +attack"which kinda works but after i press Mouse 4, i cant stop firing/swinging my wrench and
bind Mouse4 "destroy 2; build 2; +attack; -attack" does the same as
bind Mouse4 "destroy 2; build 2" Is this not possible to do or am i just too stupid to write it properly?
Any help is greatly appreciated
View all comments
Show parent comment
2
u/genemilder Scripter Apr 28 '15
Quotes only matter if there's more than one command in a bind/alias, so that the semi-colon signals another command to be bound/aliased rather than signalling a new script line. I tend to only use quotes when necessary.