Jump to content

Differences between entity, npcs, and objects?


Recommended Posts

Posted

So it seems all of these can work the same:

RS2Object tree1 = objects.closest("Oak");
Entity tree2 = objects.closest("Oak");
NPC tree3 = npcs.closest("Oak");

What are the differences if they all accomplish the same job of finding the closest oak tree? [What is the right tool for the job?]

 

Continuing on it looks like they all can be interactable:

tree.interact("Chop Down");
tree2.interact("Chop Down");
tree3.interact("Chop Down");

Again what is the right tool for the job if they all do the same thing?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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