Jump to content

Retrieving all interactable objects


Purity

Recommended Posts

What you could do is, use client#getCurrentRegion#getObjects. Which should give you an array list of objects around your area. Use a for loop for with the array list. Then use any other for loop with the objectDefinition#getActions. And if you could reach it, and it has like a certain action that can be interacted with. You could create an empty list an add those objects into the list. And make your method return the list of rs2objects.

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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