EVENT DRAWWEAPON: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
EVENT_DRAWWEAPON is a [[EDuke32_event_list|Game Event]]. | EVENT_DRAWWEAPON is a [[EDuke32_event_list|Game Event]]. | ||
This [[event]] is called when a weapon is being displayed on the screen | 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. | Set gamevar [[RETURN]] to any non-zero value to hide weapon tile. 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 | 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]] | [[Category:Events]] |
Revision as of 06:34, 16 November 2012
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. 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.