WoW API: SetOverrideBindingSpell

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API SetOverrideBindingSpell to API SetOverrideBindingSpell without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < SetOverrideBindingSpell

Creates an override binding that casts a spell

SetOverrideBindingSpell(owner, isPriority, "key", "spell");

Arguments[edit]

owner
Frame - The frame this binding "belongs" to; this can later be used to clear all override bindings belonging to a particular frame.
isPriority
Boolean - true if this is a priority binding, false otherwise. Both types of override bindings take precedence over normal bindings.
key
String - Binding to bind the command to. For example, "Q", "ALT-Q", "ALT-CTRL-SHIFT-Q", "BUTTON5"
spell
String - Name of the spell you want to cast when this binding is triggered.

Details[edit]

  • Override bindings take precedence over the normal SetBinding bindings. Priority override bindings take precedence over non-priority override bindings.
  • Override bindings are never saved, and will be wiped by an interface reload.
  • You cannot use this function to clear an override binding; use SetOverrideBinding instead.

See also[edit]