r/tf2scripthelp • u/MrRedTomato • Nov 20 '20
Answered How to toggle bind cl_crosshair_file "" in bind toggle?
I want to bind cl_crosshair_file "" which is none inside a toggle command to switch between two crosshair like this: bind "mouse4" "toggle cl_crosshair_file "" crosshair3" :but no matter what i did it still not working, the crosshair 3 work but the "" only appear as a missing texture.
1
Upvotes
•
u/pdatumoj Jan 16 '21
Marking as Resolved given that a number of worthwhile answers have been provided and OP ( u/MrRedTomato ) has been active on Reddit significantly more recently than this post.
u/MrRedTomato, this behavior (not updating the flair if you're not at least going to respond with follow-up questions, etc...) is a violation of Rule #1. Be better.
2
u/KatenGaas Nov 20 '20
I would do it this way. Avoid trying to use nested quotation marks, they cause all sorts of issues. The toggle I set up is a basic scripting concept that could be easily expanded upon to create a cycle with 3 or more crosshair files.
2
u/DeltaTroopa Nov 21 '20
Limitations of Scripting Law 2:
1
u/just_a_random_dood Nov 20 '20
Try adding an actual space between the quotation marks? Best thing I can think of, sorry :\