Set graphicsViewDistance to "10" or "1"

Hi guys,

I would like to make a macro that sets the graphicsViewDistance to “10” if it is set to “1” and to “1” if it is set to “10”. I’d like that rather than make to separate macros to set to 1 or to 10. Any idea how to do that ?

Thanks a lot !

Probably something like this

/run SetCVar("graphicsViewDistance", GetCVar("graphicsViewDistance") == "1" and 10 or 1)
1 Like

Might want to update it to the new methods for future proofing.

/run C_Var.SetCvar("graphicsViewDistance", C_Var.GetCVar("graphicsViewDistance") == "1" and 10 or 1)

This one worked for me, thanks !!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.