r/tf2scripthelp • u/Ecreeper • Oct 02 '21
Question Looping a command chain
I'm pretty new to scripting and I'm trying to make a bind that will destroy a sentry build a new one place it and repeat until the button is pressed again I'm using "destroy 2;build 2;+attack" but I don't know how to loop it
3
Upvotes
View all comments
Show parent comment
1
u/just_a_random_dood Oct 03 '21
what might work in that case could be this:
alias sentry "destroy 2; build 2; +attack";alias undoSentry "-attack";bind [key] sentrybind [key2] undoSentryBut I'm not sure it'd work or if any other method would work? At this point, maybe someone who's got a different or better idea could help, sorry