UnbindKey

From Multi Theft Auto: Wiki
Revision as of 13:14, 10 October 2006 by MrJax (talk | contribs)
Jump to navigation Jump to search

Removes an existing key bind from the specified player.

Syntax

unbindKey ( player thePlayer, string key, [ bool keyState, string function ] ) 

Required Arguments

  • thePlayer: The player you wish to unbind the key of.
  • key: The key you wish to unbind. See Key names for a list of valid key names.

Optional Arguments

  • keyState: A boolean value representing the "hit-state" of the key.
  • function: The function you wish to unbind.

Note: The function will only compare values specified, eg: you could bind 1 key to 2 functions and remove them both by not specifying a function.

Example

See Also