GetFunctionsBoundToKey: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
{{Needs_Checking|Doesn't return anything unless you don't use the for loop. Example: <syntaxhighlight lang="lua"> outputChatBox(getFunctionsBoundToKey("f1")) </syntaxhighlight> Outputs: "table: XXXXXX" }} | |||
Gets the functions bound to a key. To bind a function to a key use the [[bindKey]] function | Gets the functions bound to a key. To bind a function to a key use the [[bindKey]] function | ||
Revision as of 23:17, 9 September 2012
This article needs checking. | |
Reason(s): Doesn't return anything unless you don't use the for loop. Example: outputChatBox(getFunctionsBoundToKey("f1"))Outputs: "table: XXXXXX" |
Gets the functions bound to a key. To bind a function to a key use the bindKey function
Syntax
Click to collapse [-]
Servertable 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.
Click to collapse [-]
Clienttable getFunctionsBoundToKey ( string theKey )
Required Arguments
- 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