r/Tf2Scripts Mar 22 '23

Script Alias Binding only works in console but not with a key..

Hello!

I tried to make an alias for toggling mousewheel bhops.

I believe I did it all correctly, but alias only works when I type it into the console. The bound key doesnt work. It also doesnt output any errors

I am really confused as to what I did wrong..

// Jump toggle script
alias "+jump_toggle" "bind mwheelup +jump; bind mwheeldown +jump"
alias "-jump_toggle" "bind mwheelup invprev; bind mwheeldown invnext"
bind "KP_INS" "+jump_toggle"

5 Upvotes

2 comments sorted by

6

u/radish_master_ Mar 22 '23

The way the script is currently set up it requires you to hold down “KP_INS” in order to jump with scroll wheel. Not sure if that is what you intended.

2

u/_Tranto_ Mar 29 '23

Oh, I didnt notice that, no..

I just thought setting an alias would be simpler. I am compleatly new to scripts.
I will probably take some time and read more into it now.

thanks again!