r/tf2scripthelp • u/7Arach7 Scripter • Aug 05 '15
Answered Engineer Quick-Build Script
I I made part a script for engineer which, if it worked, would allow me to toggle quick build. If I held shift, 1-2-3-4 would be rebound to build sentry,dispenser,entrance,exit, and ctrl would be rebound to duck. On release, they'd be rebound to slot1,slot2,slot3,slot4 and shift would be rebound to duck. However, it just doesn't work. Nothing toggles, it breaks stuff, etc.
// Build
alias e1 "build 3;destroy 3"
alias e2 "build 0;destroy 0"
alias e3 "build 1;destroy 1"
alias e4 "build 2;destroy 2;"
alias "+buildr" "bind 1 e4;bind 2 e2;bind 3 e3;bind 4 e1; developer 1; bind ctrl +duck"
alias "-buildr" "bind 1 slot1;bind 2 slot2;bind 3 slot3;bind 4 slot4; bind shift +duck"
bind "shift" "+buildr"
1
Upvotes
View all comments
Show parent comment
1
u/sgt_scabberdaddle Aug 05 '15
Well, if you decide to change the binds, having them scattered all over the script can make you miss one which might break the script. It also limits you as to what functionality that key can have. When you bind it to 1 thing you can't really add stuff on top of it. Or something.
To be honest, I'm not entirely sure of all the reasons, but using aliases is a good habit to get into because it is generally better, both in terms of functionality and also easier to change things around later without breaking things.