This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing Config File

Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: Archived wiki

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 48: Line 48:
  
 
The standard format for binding a key is as follows:
 
The standard format for binding a key is as follows:
   bind <event> <press> <action>
+
   bind <key> <keypresstype> <function>
 
+
The event is the key or button that was pressed (or a combination of keys) such as F or "Shift+Page Up". The double quotes are necessary if there are spaces. The press will be one of up, down, or both. If it is set to up, for example, if will only trigger when they key or button is released. And finally, the action is what will be triggered.
+
  
 
For example, the following binding sets ''displayRadarRange'', or how far the radar is zoomed, to 0.12, when the key '`' is pressed.
 
For example, the following binding sets ''displayRadarRange'', or how far the radar is zoomed, to 0.12, when the key '`' is pressed.
 
   bind ` down "set displayRadarRange 0.12"
 
   bind ` down "set displayRadarRange 0.12"
  
One can use this template to set any of the options in the config file. However, some of the options, like ''radarsize'' need an additional function call that is only called via the options menu, and as such cannot be altered with this method.
+
One can use this template to set any of the options in the config file. However, some of the options, like ''radarsize'' need an additional function call that is only called via the options menu, and as such will do nothing if you bind them.
  
  
Line 61: Line 59:
 
   bind F down "toggle linedradarshots 65"
 
   bind F down "toggle linedradarshots 65"
 
   bind F down "toggle linedradarshots 65 10"
 
   bind F down "toggle linedradarshots 65 10"
The first line toggles the length of shots on the radar between 65 and an implied 0. The second line toggles ''linedradarshots'' between 65 and 10. This is much easier than having two keys to switch between two options.
+
The first line toggles the length of shots on the radar between 65 and an understood 0. The second line toggles ''linedradarshots'' between 65 and 10. This is much easier than having two keys to switch between two options.
  
 
''(Don't do this.)''
 
''(Don't do this.)''

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page: