EVENT DISPLAYWEAPON: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
LordMisfit (talk | contribs)
mNo edit summary
One (talk | contribs)
No edit summary
Line 1: Line 1:
EVENT_DISPLAYWEAPON is a [http://www.eduke32.com/wiki/index.php?title=EDuke32_event_list Game Event].
EVENT_DISPLAYWEAPON is a [[EDuke32_event_list|Game Event]].


This event is similar to [[EVENT_DISPLAYREST]] and [[EVENT_DISPLAYCROSSHAIR]] in the fact that it is used to draw the HUD weapons on-screen. The only reason this is seperated from [[EVENT_DISPLAYREST]] and [[EVENT_DISPLAYCROSSHAIR]] is that this event is only run when view mode (a.k.a. F7 or DNVIEW) is off. You can use it to draw your own custom weapons to the screen that do not have the exact same tile set as the pre-set weapons. Remember to check the player's current weapon first and then, if it is the weapon slot that you want replaced, then put <code>setvar RETURN -1</code> in your code.
This event is similar to [[EVENT_DISPLAYREST]] and [[EVENT_DISPLAYCROSSHAIR]] in the fact that it is used to draw the HUD weapons on-screen. The only reason this is seperated from [[EVENT_DISPLAYREST]] and [[EVENT_DISPLAYCROSSHAIR]] is that this event is only run when view mode (a.k.a. F7 or DNVIEW) is off. You can use it to draw your own custom weapons to the screen that do not have the exact same tile set as the pre-set weapons. Remember to check the player's current weapon first and then, if it is the weapon slot that you want replaced, then put <code>setvar [[RETURN]] -1</code> in your code.


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

Revision as of 11:12, 3 May 2009

EVENT_DISPLAYWEAPON is a Game Event.

This event is similar to EVENT_DISPLAYREST and EVENT_DISPLAYCROSSHAIR in the fact that it is used to draw the HUD weapons on-screen. The only reason this is seperated from EVENT_DISPLAYREST and EVENT_DISPLAYCROSSHAIR is that this event is only run when view mode (a.k.a. F7 or DNVIEW) is off. You can use it to draw your own custom weapons to the screen that do not have the exact same tile set as the pre-set weapons. Remember to check the player's current weapon first and then, if it is the weapon slot that you want replaced, then put setvar RETURN -1 in your code.