Sets an override binding to use an item in the player's possession. Override bindings are temporary. The bound key will revert to its normal setting once the override is removed. Priority overrides work the same way but will revert to the previous override binding (if present) rather than the base binding for the key.

Call with a fourth argument of nil to remove the override binding for a specific key, or see ClearOverrideBindings() to remove all bindings associated with a given owner.


See also Keybind functions, Item functions.

Signature:

SetOverrideBindingItem(owner, isPriority, "key", itemID) or SetOverrideBindingItem(owner, isPriority, "key", "itemName") or SetOverrideBindingItem(owner, isPriority, "key", "itemLink")

Arguments:

  • owner - The Frame (or other widget) object responsible for this override (table)
  • isPriority - True if this binding takes higher priority than other override bindings; false otherwise (boolean)
  • key - A key or key combination (e.g. "CTRL-2") (string, binding)
  • itemID - An item's ID (number)
  • itemName - An item's name (string)
  • itemLink - An item's hyperlink, or any string containing the itemString portion of an item link (string)