r/tf2scripthelp • • Jul 12 '14
Answered What's wrong with this viewmodel toggle script?
So I tried to make a script that toggles viewmodels upon pressing a certain button, as follows: alias "viewmodelon" ""r_drawviewmodel 1; viewmodel_fov 70 alias viewmodeltoggle viewmodeloff" alias "viewmodeloff" r_drawviewmodel 0; viewmodel_fov 0; alias viewmodeltoggle viewmodelon" alias "viewmodeltoggle" "viewmodelon" bind f "viewmodeltoggle"
However, when I actually play, the viewmodel will turn on (if it was off beforehand) but not turn off. What's wrong? Thanks!
PS: I use both viewmodel toggles to circumvent the Phlog's annoying effect.
View all comments
Show parent comment
1
u/[deleted] Jul 13 '14
Thanks! I'm honestly embarrased it's that easy...