EVENT DRAWWEAPON: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
BlasterDRP (talk | contribs)
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
EVENT_DRAWWEAPON is a [http://www.eduke32.com/wiki/index.php?title=EDuke32_event_list Game Event].
{{EventTable|1=EVENT_DRAWWEAPON |2=[[screenpeek]]|3=[[i|player->i]]|4=1 value}}


This [[event]] is called when a weapon is being displayed on the screen. Can be used with the gamevar [[currentweapon]] to control weapon animations.
EVENT_DRAWWEAPON is a [[EDuke32_event_list|Game Event]].
 
This [[event]] is called when a weapon is being displayed on the screen.  
 
Set gamevar [[RETURN]] to any non-zero value to hide weapon tile, excluding the quick kick animation.
 
The constantly updated variable [[currentweapon]] should be used with this event, i.e do not use your own declared variables, otherwise when the player attempts to switch weapons, raising/lowering of the new weapon will be glitched.
 
The difference between [[EVENT_DISPLAYWEAPON]] and EVENT_DRAWWEAPON is that the second doesn't hide the quick kick tile. EVENT_DRAWWEAPON may be useful if you don't plan to re-do the quick kick.
 
[[Category:Events]]

Latest revision as of 07:17, 30 January 2022

Event ID player# THISACTOR RETURN
EVENT_DRAWWEAPON screenpeek player->i 1 value

EVENT_DRAWWEAPON is a Game Event.

This event is called when a weapon is being displayed on the screen.

Set gamevar RETURN to any non-zero value to hide weapon tile, excluding the quick kick animation.

The constantly updated variable currentweapon should be used with this event, i.e do not use your own declared variables, otherwise when the player attempts to switch weapons, raising/lowering of the new weapon will be glitched.

The difference between EVENT_DISPLAYWEAPON and EVENT_DRAWWEAPON is that the second doesn't hide the quick kick tile. EVENT_DRAWWEAPON may be useful if you don't plan to re-do the quick kick.