Scripting/Client/Functions/GetKeyStatus

True while the key is currently held. Same key forms as BindKey.

Syntax

GetKeyStatus(key)
GetKeyState(key)

Arguments

Example

function onScriptLoad()
{
	GetKeyStatus( "X" );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Input

Categories: Client functions | Input