Jump to content

EVENT WEAPKEY2

From EDukeWiki
Event IDplayer#THISACTORRETURN
EVENT_WEAPKEY2player that executed the inputplayer->i1 value

EVENT_WEAPKEY2 is a game event.

This event is called when the player presses the key assigned to drawing the Pistol (2 by default).

RETURN gamevar

Gamevar RETURN holds the key being pressed, instead of the ID of the weapon being selected. Setting gamevar RETURN to a certain value will force the chosen weapon to be selected.

The following values are valid:

RETURNWeaponEvent
0KNEE_WEAPONEVENT_WEAPKEY1
1PISTOL_WEAPONEVENT_WEAPKEY2
2SHOTGUN_WEAPONEVENT_WEAPKEY3
3CHAINGUN_WEAPONEVENT_WEAPKEY4
4RPG_WEAPONEVENT_WEAPKEY5
5HANDBOMB_WEAPON
HANDREMOTE_WEAPON
EVENT_WEAPKEY6
6SHRINKER_WEAPON
GROW_WEAPON
EVENT_WEAPKEY7
7DEVISTATOR_WEAPONEVENT_WEAPKEY8
8TRIPBOMB_WEAPONEVENT_WEAPKEY9
9FREEZE_WEAPONEVENT_WEAPKEY10
10Previous weaponEVENT_PREVIOUSWEAPON
11Next weaponEVENT_NEXTWEAPON
12Weapon that share the same keyEVENT_ALTWEAPON
13last_used_weaponEVENT_LASTWEAPON