r/Tf2Scripts • u/mrstork89 • Oct 24 '19
Satisfied How to Toggle Draw Viewmodel Script with a button?
bind "r" "r_drawviewmodel 1;slot3"
bind mwheelup "slot1;r_drawviewmodel 0"
bind mwheeldown "slot2;r_drawviewmodel 0"
Now I want this r_drawviewmodel to remain "1" when I press Capslock and go back to being controlled by the keyboard buttons when I press again(capslock light turns off) or as it is above, basically revert back as above.
9
Upvotes
View all comments
Show parent comment
1
u/KatenGaas Oct 24 '19
Yeah, the linking of everything is really where scripts start to shine.
If you want stuff to check out, you could check my basic guide to hiding TF2 viewmodels. And you could have a go at trying to understand my script for hiding TF2 viewmodels on the fly That's one where really everything is linked :P
Otherwise, I'd start by learning basic toggles.
A toggle is basically a short cycle, so you could expand something like that to: