SetBinding("key"[, "command"]) - Sets or unsets key bindings. (2.0 - Can not be used in combat.)
Arguments
(String key, String command)
key
(string) Key name of the key to bind (e.g. W, CTRL-F, BUTTON2). As of 1.6 there is now error checking on this value so random strings for key names won't work anymore.
command
(string) Command name to execute when the key is pressed (e.g. MOVEFORWARD, TOGGLECHARACTER0). This argument is optional. If not included, the function will un-bind the key argument. Also, using an invalid command will also un-bind the key specified.
Connect With Us