ScriptEvent:getButton

From Mod Wiki
Revision as of 16:30, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.