SetBinding
functionimplementedavailable in: camelot
Sets a key binding to an action.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
key | string | Any binding string accepted by World of Warcraft. For example: "ALT-CTRL-F", "SHIFT-T", "W", "BUTTON4". |
command | string? | Any name attribute value of a Bindings.xml-defined binding, or an action command string, or nil to unbind all bindings from key. For example: |
mode | number? | 1 if the binding should be saved to the currently loaded binding set (default), or 2 if to the alternative. |
Returns
ok · boolean? · 1 if the binding has been changed successfully, nil otherwise.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.