Scripting/Client/Functions/GetKeyStatus
True while the key is currently held. Same key forms as BindKey.
Syntax
GetKeyStatus(key)GetKeyState(key)Arguments
- string key
Example
function onScriptLoad()
{
GetKeyStatus( "X" );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- BindKey
- UnbindKey
- ShowMouseCursor
- GetMouseCursorPos
- SetMouseCursorPos
- SetDriveBy
- ToggleCameraMovement
- ToggleMouseMovement
- ToggleWaterShader
- ToggleDynamicShadows
- ToggleBulletHoles
- SetCameraFov
Section: Input
Categories: Client functions | Input