Purity Posted March 22, 2014 Share Posted March 22, 2014 How would I retrieve all the interactable objects in the area? (Bank Booths, Stairs, Doors, etc.) It's probably obvious, but could anyone help? Link to comment Share on other sites More sharing options...
Joseph Posted March 22, 2014 Share Posted March 22, 2014 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. 1 Link to comment Share on other sites More sharing options...
Swizzbeat Posted March 22, 2014 Share Posted March 22, 2014 Just grab all the objects in the area and perform a getActions check. Link to comment Share on other sites More sharing options...
Dog_ Posted March 22, 2014 Share Posted March 22, 2014 (edited) client.getCurrentRegion().getObjects() gives you the RS2Object's in the loaded region Edited March 22, 2014 by Erza 1 Link to comment Share on other sites More sharing options...
Purity Posted March 23, 2014 Author Share Posted March 23, 2014 client.getCurrentRegion().getObjects() gives you the RS2Object's in the loaded region Second time in the last day that you've bailed me out. Thank you so much. Link to comment Share on other sites More sharing options...
Dog_ Posted March 23, 2014 Share Posted March 23, 2014 Second time in the last day that you've bailed me out. Thank you so much. you're welcome Link to comment Share on other sites More sharing options...