ScriptEvent:getButton

From Mod Wiki

Parameters

integer key -- Key to check.

Result

boolean

Supported By

idPlayer

Comments

  • Key may be PK_ATTACK, PK_RUN, PK_MODESWITCH, PK_MOUSELOOKOFF, PK_SPRINT, PK_ACTIVATE, PK_ALTFIRE, PK_LEANLEFT, PK_LEANRIGHT or PK_TOPHAT.

Functionality

Returns whether the player is holding down the specified key or not.