Binds a key combination to cast a spell
See also Keybind functions.
Signature:
success
=
SetBindingSpell("key",
"spellname")
Arguments:
key
- A key or key combination (e.g. "CTRL-2") (string
, binding)spellname
- Name of a spell to bind (string
)
Returns:
success
- 1 if the key binding was successful; otherwise nil (1nil
)
Examples:
-- Bind Flash Heal to ALT-Y SetBindingSpell("ALT-Y", "Flash Heal")