Jump to content

Picking up Items


organicjello

Recommended Posts

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

Link to comment
Share on other sites

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 by Isolate
  • Like 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...