This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Config File
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 < | + | bind <key> <keypresstype> <function> |
− | + | ||
− | + | ||
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 | + | 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 | + | 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.)'' |