Purity Posted March 22, 2014 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?
Joseph Posted March 22, 2014 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
Swizzbeat Posted March 22, 2014 Posted March 22, 2014 Just grab all the objects in the area and perform a getActions check.
Dog_ Posted March 22, 2014 Posted March 22, 2014 (edited) client.getCurrentRegion().getObjects() gives you the RS2Object's in the loaded region Edited March 22, 2014 by Erza 1
Purity Posted March 23, 2014 Author 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.
Dog_ Posted March 23, 2014 Posted March 23, 2014 Second time in the last day that you've bailed me out. Thank you so much. you're welcome