EVENT CHANGEWEAPON: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
mNo edit summary
No edit summary
Line 1: Line 1:
EVENT_CHANGEWEAPON is a [[EDuke32_event_list|Game Event]].
EVENT_CHANGEWEAPON is a [[EDuke32_event_list|Game Event]].


This [[event]] is initalized when the player is changing weapons.
This [[event]] is run when the player is changing weapons.


The new weapon is in '[[WEAPON]]' and '[[WORKSLIKE]]'
[[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'
-1 means 'no weapon'.


[[Category:Events]]
[[Category:Events]]

Revision as of 21:16, 26 August 2012

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'.