GetFunctionsBoundToKey: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser32 (talk | contribs) No edit summary |
m (→Syntax) |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
table getFunctionsBoundToKey ( player thePlayer, string theKey ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 13: | Line 13: | ||
===Returns=== | ===Returns=== | ||
Returns a | Returns a table of the key function(s). | ||
==Example== | ==Example== |
Revision as of 22:55, 9 September 2012
Gets the functions bound to a key. To bind a function to a key use the bindKey function
Syntax
table getFunctionsBoundToKey ( player thePlayer, string theKey )
Required Arguments
- thePlayer: The player to get the functions from a key.
- theKey: The key you wish to check the functions from.
Returns
Returns a table of the key function(s).
Example
Script Example Missing Function GetFunctionsBoundToKey needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- TODO
See Also
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleAllControls
- toggleControl
- unbindKey