Skip to content

event onUseItem (client-side)

This event is triggered when hero uses, opens or consumes any item.

Parameters

string instance, int amount, int hand
  • string instance: an instance name of the dropped item.
  • int amount: an amount of the dropped item.
  • int hand: the id of the hand in which hero holds item. For more information see Hand constants.