Magarac Posted February 4, 2017 Posted February 4, 2017 Hey, so I'm working on a simple script and need to check a certain area to see if an object exists, else world hop. The area is the size of a standard mining pit (e.g. Varrock E or W) and the object is defined under the object category in the API but it wouldn't be my object. Don't wanna give much more away but I'd be more clear to a scripter in private. Thanks in advance for any help!
Juggles Posted February 4, 2017 Posted February 4, 2017 (edited) Area.contains(Entity entity); Just check the Area APIhttp://osbot.org/api/ Edited February 4, 2017 by Juggles 1
Magarac Posted February 4, 2017 Author Posted February 4, 2017 2 minutes ago, Juggles said: Area.contains(Entity entity); Just check the Area APIhttp://osbot.org/api/ Ohh that's great, thanks! Appreciate it man.
Team Cape Posted February 5, 2017 Posted February 5, 2017 RS2Object o = getObjects().closest(AREA, "Door"); if(o != null)... Checks if there's an object with the name 'Door' in AREA 2