Nop (Slash Command): Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
{{SlashCommandArticle|command=nop|note=Used to bind a keyboard key or button to do nothing.}}
{{SlashCommandArticle|command=nop|note=Used to bind a keyboard key or button to do nothing.}}


A "no operation" command, or "nop" command, is necessary to make a key do nothing because of the way the keybinding system works. Nearly all keyboard keys start with a default keybinding. In order to make a key do something other than its default keybind, we can use the {{slashcommand|bind}} command to assign a custom keybind to that key. The default keybinding can not deleted or overwritten, instead the custom keybind is placed on top of the default keybind as a kind of second layer. When the key is pressed, the game overrides the default keybind and replaces it with the custom keybind. The {{slashcommand|unbind}} command merely resets the key to its default keybinding. So if a player wishes for a key to do nothing, they must bind a custom keybind onto that key using a slash command that does nothing... {{slashcommand|nop}}.       
A "no operation" command, or "nop" command, is necessary to make a key do nothing because of the way the keybinding system works. Nearly all keyboard keys start with a default keybinding. In order to make a key do something other than its default keybind, we can use the {{slashcommand|bind}} command to assign a custom keybind to that key. The default keybinding can not be deleted or overwritten, instead the custom keybind is placed on top of the default keybind as a kind of second layer. When the key is pressed, the game overrides the default keybind and replaces it with the custom keybind. The {{slashcommand|unbind}} command merely resets the key to its default keybinding. So if a player wishes for a key to do nothing, they must bind a custom keybind onto that key using a slash command that does nothing... {{slashcommand|nop}}.       


* "Nop" is an abbreviation for "no operation"
* "Nop" is an abbreviation for "no operation"

Latest revision as of 02:01, 15 October 2024

Slash Command

/nop  

Used to bind a keyboard key or button to do nothing.

A "no operation" command, or "nop" command, is necessary to make a key do nothing because of the way the keybinding system works. Nearly all keyboard keys start with a default keybinding. In order to make a key do something other than its default keybind, we can use the /bind command to assign a custom keybind to that key. The default keybinding can not be deleted or overwritten, instead the custom keybind is placed on top of the default keybind as a kind of second layer. When the key is pressed, the game overrides the default keybind and replaces it with the custom keybind. The /unbind command merely resets the key to its default keybinding. So if a player wishes for a key to do nothing, they must bind a custom keybind onto that key using a slash command that does nothing... /nop.

  • "Nop" is an abbreviation for "no operation"
  • Instead of /nop, some players bind a key to double quotes ("") or double quotes with a space in-between (" "). However, according to the devs binding /nop to a key is the preferred method to make a key do nothing as it has zero chance to generate errors.


Example

/bind H nop