Now its just selecting the inventory object and hovers the range continuously changing mouse location of the hover.
This is OSRS if that matters.
Edit:
I think this might be because "Use" isnt actually an action of range since range only has examine option. Is there a way to just right click...
Still not luck, These are the two lines that I have.
Inventory.getItems(food).first().interact("Use");
range.interact("Use", "Range");
Right now it just selects the food item and mouse goes back and forth between the food item and range.
I'm trying to make a script for OSRS.
Had no luck with that method, GameObject.getName() doesnt exist,
I even tried to manually enter name "Range" replacing getName that also doesnt work. it just hovers over the range continuously.
How do I use an item in an inventory on a object? Like selecting food to cook on a range.
What I've been doing is selecting object in inventory and then using Gameobject.click() to do this, however if there's someone in front of the object it doesn't work. What is the proper way to do this...