I'm updating an old addon that deals with keybinds, it used to use SetBindingSpell to bind mounts to keys, but it doesn't seem to work any more.
I'm running:
SetBindingSpell('I','Albino Drake')
which returns true, then
SaveBindings(2)
print(GetBindingAction('I'))
which returns
SPELL Albino Drake
But pressing 'I' does nothing (other spells work fine).
Is there some new function for doing this that I haven't found yet? I spotted C_MountJournal.SummonByID() which works fine, but can't see any way to pass it in a key to bind to.
Is there no longer a way to do it directly then? Using buttons directly would then mean my addon is a requirement for the bindings to work, rather than an optional way to edit them
You could do it with SetBindingMacro, that one requires either a macro name or index (don't use index as it will change), and macros are shared across installations.
It does however require you to make the macro first.