I'm trying to make a bind where I can toggle between mousewheeldown +jump and switching weapons. This is what I have so far:
https://i.imgur.com/6ysSW8f.png
But whenever I try to use it in-game it says "Unknown command: bhopon"
I'm trying to make a bind where I can toggle between mousewheeldown +jump and switching weapons. This is what I have so far:
https://i.imgur.com/6ysSW8f.png
But whenever I try to use it in-game it says "Unknown command: bhopon"
alias "bhopon" "bind mwheeldown +jump; bind mouse3 bhopoff"
-> " <- is missing at the end
same for bhopoff, u gotta close it. bhop off even ends on a dot???
alias "bhopon" "bind "mwheeldown" "+jump"; bind "mouse3" "bhopoff""
alias "bhopoff" "bind "mwheeldown" "lastinv"; bind "mouse3" "bhopon""
bind "mouse3" "bhopon"
bhopon
mikematalias "bhopon" "bind "mwheeldown" "+jump"; bind "mouse3" "bhopoff""
alias "bhopoff" "bind "mwheeldown" "lastinv"; bind "mouse3" "bhopon""
bind "mouse3" "bhopon"
bhopon
This script is still giving me "unknown command: bhopon"
remove the speech marks before bind i think is the problem
no never mind
Try:
alias bhopon "bind mwheeldown +jump; bind mouse3 bhopoff"
alias bhopoff "bind mwheeldown invnext; bind mouse3 bhopon"
bhopon
Okay so if I enter the commands individually into the console while I'm ingame it works but when I place it into my autoconfig or create another config file and run it while ingame it doesn't work. Is my version of tf2 just cursed?
I've had
alias "bhop" "bind "mwheeldown" "+jump";bind 5 "normalhop""
alias "normalhop" "bind mwheeldown melee;bind 5 "bhop""
in my autoexec forever, with
bind "5" "bhop"
in the relevant class config and it works just fine.
sorry for necro but im gonna post the solution in case anybody else has this issue in the future. the way i got it to work was to copy and paste each line of the script individually when i put it into my autoexec instead of copy and pasting a whole block of text into notepad.
solution found but I'll just give this tip to people who might still read this.
When there's a lot of quotation marks, split it into more aliases to make it easier on the eyes. Makes it easier to find bugs and helps with editing things later on
alias "bhop" "bind "mwheeldown" "+jump";bind 5 "normalhop""
alias "normalhop" "bind mwheeldown melee;bind 5 "bhop""
can be
alias bindjump "bind mwheeldown +jump"
alias bindmelee "bind mwheeldown slot3"
alias bhop "bindjump; bind 5 normalhop"
alias normalhop "bindmelee; bind 5 bhop"