EVENT PRESSEDFIRE

From EDukeWiki
Revision as of 15:07, 4 February 2022 by Doom64hunter (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_PRESSEDFIRE player that executed the input player->i 1 value

EVENT_PRESSEDFIRE is a Game Event.

This event is triggered when you press the primary fire key (ctrl and mouse button 1 by default).

Setting RETURN to any non-zero value will effectively negate the keypress, preventing the player from firing.