r/tf2scripthelp • u/Pixel_Pants • Nov 14 '13
Answered Engie Auto-Build sentry help?
Would this work for building the sentry? And If I pressed it again would it destroy it? If not could you explain how I could.
bind F "build 2; say_team Building Sentry; destroy 2"
3
u/genemilder Scripter Nov 14 '13
What it may do is destroy any existing sentries and then show the blueprint to build one, but not sure if the order of commands matters here (it may). EDIT: See /u/TimePath's answer for the answer.
What I use is similar, it's a script that destroys any existing sentries when shift is pressed, and brings out the sentry blueprint while shift is held. Pressing mouse1 will place the sentry as normal, and releasing shift will switch your active weapon to your primary. If you don't want to place the sentry, just release shift without pressing mouse1.
alias +fastsentry "destroy 2 0;build 2 0"
alias -fastsentry "slot1"
bind "shift" +fastsentry
5
u/TimePath Stylesheet Nov 14 '13
Depending on the order of the build or destroy statements, you can get different functionality. It doesn't matter where you put the
say_teamstatementIf
buildis first and you already have a sentry, you will have to press it twice to destroy and build another. Ifdestroyis first, pressing it once will destroy and take out the blueprints.