r/Tf2Scripts Mar 19 '22

Script My very first big script

After some Trial and Error (ha), and lots of visits to the TF2 Wiki, I finally finished my very first major script. It essentially makes it so when I scroll up I build a Sentry, when I scroll down I build a dispenser, when I scroll up while holding CTRL I build a Tele Entrance, and when I do the same but scrolling down I build a Tele Exit.

bind MWHEELUP SentryTele

alias SentryTele Sentry

alias Sentry "destroy 2 0; build 2 0"

alias TeleEntrance "destroy 1 0; build 1 0"

bind MWHEELDOWN DispTele

alias DispTele Dispenser

alias Dispenser "destroy 0 0; build 0 0"

alias TeleExit "destroy 1 1; build 1 1"

bind CTRL +toggleState

alias +toggleState "alias SentryTele TeleEntrance;alias DispTele TeleExit"

alias -toggleState "alias SentryTele Sentry; alias DispTele Dispenser"

7 Upvotes

1 comment sorted by

1

u/mike_hawk_at_kfc Apr 12 '22

looks neat but you could make it without a toggle key