Upvote Upvoted 1 Downvote Downvoted
Scripts in autoexec not workign
posted in Q/A Help
1
#1
0 Frags +

I'm new to scripting shit in TF2, and I just whipped up one for lowering game volume while shift (my push to talk key) is held down:
bind "shift" "+togglevolume"
alias "+togglevolume" "volume 0.2"
alias "-togglevolume" "volume 1"

When I enter in the above lines in the console, my script works just fine. However, when I put it in autoexec.cfg or config.cfg, it doesn't work. I'm sorry if this has been asked a million times before, but could you please help me?

I'm new to scripting shit in TF2, and I just whipped up one for lowering game volume while shift (my push to talk key) is held down:
bind "shift" "+togglevolume"
alias "+togglevolume" "volume 0.2"
alias "-togglevolume" "volume 1"

When I enter in the above lines in the console, my script works just fine. However, when I put it in autoexec.cfg or config.cfg, it doesn't work. I'm sorry if this has been asked a million times before, but could you please help me?
2
#2
2 Frags +

did you try typing in exec autoexec.cfg in console after putting it in there?

should just need to do it once

its also possible that there is another line that binds shift to something else once youve loaded up

type bind shift into console to make sure that it's still bound to +togglevolume after youve loaded up

did you try typing in exec autoexec.cfg in console after putting it in there?

should just need to do it once

its also possible that there is another line that binds shift to something else once youve loaded up

type bind shift into console to make sure that it's still bound to +togglevolume after youve loaded up
3
#3
1 Frags +

put it in ur class config. id bet if u went into a server and sat in spec that the script would work.

when you join a class it exec's the class config and ur shift key is getting rebound

placing exec autoexec.cfg at the bottom of ur class config would also suffice.

put it in ur class config. id bet if u went into a server and sat in spec that the script would work.

when you join a class it exec's the class config and ur shift key is getting rebound


placing exec autoexec.cfg at the bottom of ur class config would also suffice.
4
#4
0 Frags +

put it into a new text file and name it whatever you want .cfg and save it in your cfg folder.

then in your autoexec.cfg put a line that say exec (whatever you named the file)

put it into a new text file and name it whatever you want .cfg and save it in your cfg folder.

then in your autoexec.cfg put a line that say exec (whatever you named the file)
Please sign in through STEAM to post a comment.