EVENT SELECTWEAPON

From EDukeWiki
Revision as of 13:40, 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_SELECTWEAPON player that executed the input player->i 1 value

EVENT_SELECTWEAPON is a Game Event.

This event is called whenever the player selects a weapon through numbers keys, mouse wheel, or other means.

RETURN is set to the selected weapon number. Set RETURN to -1 to prevent switching the weapon, or change it to a different number to select a different weapon.