EVENT CHANGEWEAPON

From EDukeWiki
Jump to navigation Jump to search

EVENT_CHANGEWEAPON is a Game Event.

This event is run when the player is changing weapons.

RETURN holds the value of the weapon the game is about to switch to. You can change the value to redirect the switch, or disable it by setting a value of -1. You can find the value of the weapon the player is currently holding in WEAPON and curr_weapon.

-1 means 'no weapon'.