EVENT DOFIRE

From EDukeWiki
Revision as of 10:15, 5 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_DOFIRE player that executed the input player->i 1 value

EVENT_DOFIRE is a game event.

This event is called with every shot of any player's weapon regardless of it animation type and position of shooting frame (i. e. weaponcount number).

The event is only executed on successful attempt to fire the weapon, i.e. it will not trigger on every fire input if the weapon is not ready to fire yet.

Set gamevar RETURN to any non-zero value to prevent firing the weapon.