EVENT INVENTORY: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{EventTable|1=EVENT_INVENTORY|2=player that executed the input|3=[[i|player->i]]|4=1 value}}
EVENT_INVENTORY is a [[EDuke32_event_list|Game Event]].
EVENT_INVENTORY is a [[EDuke32_event_list|Game Event]].


This [[event]] is called when the player use one of his items in his inventory ( default key is "ENTER" ). See also [[EVENT_INVENTORYLEFT]] and [[EVENT_INVENTORYRIGHT]].
This [[event]] is called when the player uses any inventory item (default key is "ENTER").


Set gamevar [[RETURN]] to any non-zero value to ignore the key.
Inside this event, you can use [[inven_icon]] to determine and change which item is being used.
 
Setting gamevar [[RETURN]] to any non-zero value will cause the engine to ignore the keypress.
 
See also [[EVENT_INVENTORYLEFT]] and [[EVENT_INVENTORYRIGHT]].
[[Category:Events]]
[[Category:Events]]

Latest revision as of 14:47, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_INVENTORY player that executed the input player->i 1 value

EVENT_INVENTORY is a Game Event.

This event is called when the player uses any inventory item (default key is "ENTER").

Inside this event, you can use inven_icon to determine and change which item is being used.

Setting gamevar RETURN to any non-zero value will cause the engine to ignore the keypress.

See also EVENT_INVENTORYLEFT and EVENT_INVENTORYRIGHT.