Scripting/Client/Functions/UnbindKey

Removes the bind(s). With only the key, every handler on it is removed.

Syntax

UnbindKey(key [, type [, callback]])

Arguments

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.

Section: Input

Categories: Client functions | Input