Skip to content

function useItem (client-side)

Available since version: 0.1.9

This function will try to use item by hero/npc.

Declaration

void useItem(int id, string itemInstance)

Parameters

  • int id: the player id.
  • string itemInstance: the instance of an item you want to interact with.