Sign in to follow this  
Soleil

Anyone know if there's an option toggling command?

Recommended Posts

There's a setoption command, is there anyway to bind this?

Is there anyway to make this a toggle?

 

For example, I want to bind the outline option (which can be changed while the game is up) to a button.

So I can push a button to turn it on and back off.

 

Thanks for any help!

Share this post


Link to post
Share on other sites

In console:

 

bind <key> "setoption outline_picking true" - Turns on.

bind <key> "setoption outline_picking false" - Turns off.

 

Change the keys to whatever you want. :) 

 

(You need to do "setoption <command>" in quotes for it to work in setting options. Not all can be bound, but a lot can.)

Edited by Xallo
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this