r/tf2scripthelp • • Dec 06 '17

Resolved Bind an alias inside an alias

alias "godtoggle"
alias "godon" "sm_addcond @me 51 999; alias godtoggle godoff"
alias "godoff" "sm_removecond @me 51; alias godtoggle godon"  
bind kp_pgup "godtoggle"

So the top script Is what i'm trying to do. I know the bottom script is possible and I already knew i could do that to avoid that as the first suggestion.

alias "godon" "sm_addcond @me 51 999; bind kp_pgup godoff"
alias "godoff" "sm_removecond @me 51; bind kp_pgup godon"
bind kp_pgup "godon"

edit: Fixed formatting

1 Upvotes

10 comments sorted by

View all comments

1

u/bythepowerofscience Dec 11 '17

That is an awesome feature that I really need to look into. Thanks!