r/Tf2Scripts • • Jun 23 '20

Resolved Binding shift or alt

Hello I'm kinda new to this and there's so much information to look through it's hard to find what I'm looking for. I currently have my builds bound to 1,2,3 and 4 on engineer but could I bind shift+1, shift+2 etc to destroy? If not shift, could I use alt? For clarification I'm not looking for one command to do two jobs, but two commands to do one job, is that possible?

edit: I found out the first step here: https://gyazo.com/6db8c81459fdf0df7330195f79322329 BUT I don't know how to do this for engineer. If anyone could help that would be greatly appreciated.

2 Upvotes

4 comments sorted by

View all comments

1

u/KatenGaas Jun 25 '20 edited Jun 25 '20

This is a script I used to use:

bind 1 		"my_key_1"
bind 2 		"my_key_2"
bind 3 		"my_key_3"
bind 4		"my_key_4"
alias my_key_1 	"slot1"
alias my_key_2 	"slot2"
alias my_key_3 	"slot3"
alias my_key_4	"slot4"

alias sentry    "destroy 2 0; build 2 0"
alias dispenser "destroy 0 0; build 0 0"
alias Tentrance "destroy 1 0; build 1 0"
alias Texit     "destroy 1 1; build 1 1"

alias +engiectrl "alias my_key_1 sentry; alias my_key_2 dispenser; alias my_key_3 Tentrance; alias my_key_4 Texit; exec engiectrl"
alias -engiectrl "alias my_key_1 slot1;  alias my_key_2 slot2; 	   alias my_key_3 slot3; 	 alias my_key_4 slot4"


bind ctrl +engiectrl

You can use shift or alt too. With this, if you press ctrl + 1, you'd build a sentry, or destroy one if there already is one. Obviously you could take out the "build X Y" part of the building aliases, to only destroy them.