organicjello Posted February 26, 2015 Share Posted February 26, 2015 What class or method is used for picking up items? I can't seem to find anything in the API...I thought groundItems would have something, but doesn't look like there's much there. Objects looks good, but I don't see anything that has the specific function of picking up a ground item. Is the best way just using closest(item id) and then interact? If that is the case, what exactly does distance entail for the closest methods? What is real distance vs. pythagoras vs. absolute? Thanks Quote Link to comment Share on other sites More sharing options...
Isolate Posted February 26, 2015 Share Posted February 26, 2015 (edited) What class or method is used for picking up items? I can't seem to find anything in the API...I thought groundItems would have something, but doesn't look like there's much there. Objects looks good, but I don't see anything that has the specific function of picking up a ground item. Is the best way just using closest(item id) and then interact? If that is the case, what exactly does distance entail for the closest methods? What is real distance vs. pythagoras vs. absolute? Thanks If groundItems isn't looking good for you i'm very very concerned. GroundItem loot = groundItems.closest("Bones"); if(loot != null){ //more cool checks loot.interact("Take"); //badass sleep timer } Will find the closest groundItem named bones if it exists Edited February 26, 2015 by Isolate 1 Quote Link to comment Share on other sites More sharing options...
organicjello Posted February 26, 2015 Author Share Posted February 26, 2015 Haha, I guess I just don't really know how to interpret API documentations then. So, the GroundItems class inherits all the Entity methods like closest? I guess I;m confused by all the lingo like differences between objects, entities, and groundItems. Isn't a ground item an object? Quote Link to comment Share on other sites More sharing options...
Isolate Posted February 26, 2015 Share Posted February 26, 2015 Haha, I guess I just don't really know how to interpret API documentations then. So, the GroundItems class inherits all the Entity methods like closest? I guess I;m confused by all the lingo like differences between objects, entities, and groundItems. Isn't a ground item an object? no object is an object, like a door, gate, fence, bank booth Quote Link to comment Share on other sites More sharing options...
Twin Posted February 26, 2015 Share Posted February 26, 2015 Haha, I guess I just don't really know how to interpret API documentations then. So, the GroundItems class inherits all the Entity methods like closest? I guess I;m confused by all the lingo like differences between objects, entities, and groundItems. Isn't a ground item an object? Object is its own thing. An object is something like A tree, ore vein, a door, things like that. A ground item is anything that is on the ground and has orange text. Quote Link to comment Share on other sites More sharing options...
VladBots Posted February 26, 2015 Share Posted February 26, 2015 Object is its own thing. An object is something like A tree, ore vein, a door, things like that. A ground item is anything that is on the ground and has orange text. not necessarily the ground, it can be on a table too. Anything marked as a red dot on the minimap is classed as a GroundItem. Quote Link to comment Share on other sites More sharing options...
Twin Posted February 26, 2015 Share Posted February 26, 2015 not necessarily the ground, it can be on a table too. Anything marked as a red dot on the minimap is classed as a GroundItem. ^ what he said Quote Link to comment Share on other sites More sharing options...