new `on_dropped_item` event?
Posted: Sat Oct 08, 2016 6:15 am
Currently there's no easy way to determine if a player dropped an item using the Z key.
I have need to detect this situation and either replace item-on-ground entity with something else, or delete it.
Could we get new event when player drops item using Z key?
Event properties would include: player_index, entity (ref to the item-on-ground entity)
Aside: Would it be worth renaming on_picked_up_item to on_player_picked_up_item? (and likewise: on_player_dropped_item)
EDIT: See also: viewtopic.php?f=25&t=33935
I have need to detect this situation and either replace item-on-ground entity with something else, or delete it.
Could we get new event when player drops item using Z key?
Event properties would include: player_index, entity (ref to the item-on-ground entity)
Aside: Would it be worth renaming on_picked_up_item to on_player_picked_up_item? (and likewise: on_player_dropped_item)
EDIT: See also: viewtopic.php?f=25&t=33935