EVENT INVENTORY
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 read inven_icon to determine which item is being used, and write to it to 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.