Scripting/Client/Functions/UnbindKey
Removes the bind(s). With only the key, every handler on it is removed.
Syntax
UnbindKey(key [, type [, callback]])Arguments
- string key
- int type (optional)
- string callback (optional)
Returns
bool
Example
function onScriptLoad()
{
local result = UnbindKey( "X" );
MessagePlayer( "UnbindKey returned: " + result, player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- BindKey
- GetKeyStatus
- ShowMouseCursor
- GetMouseCursorPos
- SetMouseCursorPos
- SetDriveBy
- ToggleCameraMovement
- ToggleMouseMovement
- ToggleWaterShader
- ToggleDynamicShadows
- ToggleBulletHoles
- SetCameraFov
Section: Input
Categories: Client functions | Input