EVENT SELECTWEAPON
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.