ni562 Posted December 14, 2015 Share Posted December 14, 2015 (edited) Hey guys i'm making a flax spinning bot as my first script. I am having a problem creating an entity == to the spinning wheel. import org.osbot.rs07.api.model.Entity; . . . . . Entity wheel = closest("Spinning wheel"); I keep getting "closest(STRING) is undefined for the type class <FlaxPicker>" error. Any ideas? Edited December 14, 2015 by ni562 Quote Link to comment Share on other sites More sharing options...
KEVzilla Posted December 14, 2015 Share Posted December 14, 2015 (edited) final RS2Object wheel = getObjects().closest("Spinning wheel"); The final modifier is optional. Edited December 14, 2015 by KEVzilla Quote Link to comment Share on other sites More sharing options...
ni562 Posted December 14, 2015 Author Share Posted December 14, 2015 final RS2Object wheel = getObjects().closest("Spinning wheel"); The final modifier is optional. thanks mate, fixed it with this RS2Object wheel = objects.closest(SPIN_WHEEL); Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted December 14, 2015 Share Posted December 14, 2015 thanks mate, fixed it with this RS2Object wheel = objects.closest(SPIN_WHEEL); Entity wheel = entities.closest("Spin Wheel"); would work too but RS2Object is better anyway. Quote Link to comment Share on other sites More sharing options...