function useItemToStateQueued (client-side)
Available since version: 0.3.9.0
This function pushes use/interact/open item action in specific state on player/npc action queue.
Declaration
void useItemToStateQueued(int id, Item item, int state)
Parameters
intid: the player id.Itemitem: the item object. For more information see Item class.intstate: the state that you'll start from interacting with item.