Jump to content

How to click the same bank booth that it originally found?


Xellic

Recommended Posts

If I have 

RS2Object bankBooth = objects.closest("Bank booth");

it will find the closest bank booth to me. Problem is, if I am already standing in front of a bank booth, it will find the closest one next to me instead of interacting with the one already in front of me. How do I make it so when the script initially finds a bank booth, it will keep using the same one?

Link to comment
Share on other sites

If I have 

RS2Object bankBooth = objects.closest("Bank booth");

it will find the closest bank booth to me. Problem is, if I am already standing in front of a bank booth, it will find the closest one next to me instead of interacting with the one already in front of me. How do I make it so when the script initially finds a bank booth, it will keep using the same one?

try:

objects.closest(true, "Bank booth");
  • Like 2
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...