EVENT SELECTWEAPON

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.