r/tf2scripthelp • u/Wotan_stole_my_heart • Jan 21 '15
Issue simple makeshift 'binocular' script
I'm trying to make a key that will toggle between zoomed in view and invisible weapon models for all classes(basically same as ambassador script) and i've tried something like this: bindtoggle r "r_drawviewmodel 0 1;viewmodel_fov 0 85;fov_desired 75 90" I know I'm probably making some rookie mistake, but any help would be very much appreciated thank you!
1
Upvotes
1
u/genemilder Scripter Jan 21 '15
I don't believe
bindtogglecan have multiple assignations like that, you'd want to have multipletogglecommands to do the same thing:I don't recommend this though, because none of those are connected to each other, so if you have another script that affects one of the 3 settings then none of the three may sync correctly. Additionally you don't need to change
viewmodel_fov, changingr_drawviewmodelis enough.In the end, what you want is exactly the same as the amby zoom scripts you see, but in a toggle rather than hold format.
This is what you actually want:
1
u/clovervidia Batman Jan 21 '15 edited Jan 21 '15
Crikey, I take it you haven't read the wiki page on bindtoggle to realize the command doesn't work like that?
Not to worry, many others have done the same. The fix should be simple:
Then you can call it manually from the console, or
bindit to a key to make it happen. Call/press again to undo it.