BurnerBot 1 Share Posted December 27, 2017 I'm trying to light both Incense burners in Player Owned House, an am stuck on how to select the furthest burner from me, since getClosest() only comes up with the nearest one. I was thinking of doing List<GameObject> burners = getGameObjects().all("Incense burner"); to select all of the burners, but I don't know how to interact with them one at a time. [RESOLVED] List<GameObject> burners = getGameObjects().all("Incense burner"); burners.get(0).interactForceRight("Re-light"); burners.get(1).interactForceRight("Re-light") works perfectly, just in case anyone has this problem in the future. Link to comment Share on other sites More sharing options...
dQw4w9WgXcQ 184 Share Posted December 28, 2017 shouldnt put 2 action in loop. check if id changes Link to comment Share on other sites More sharing options...
RetroBot 35 Share Posted December 28, 2017 I don't have an account that has an altar to light, but you could probably have a filter that checks for the game object that has the name "Incense burner" and has the option "Re-light". Link to comment Share on other sites More sharing options...
InflatableCat 1 Share Posted December 28, 2017 GameObject burner = aS.getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().equals("Incense burner")); if (burner.interact("Re-light")) { //add sleep until } Link to comment Share on other sites More sharing options...
dQw4w9WgXcQ 184 Share Posted December 29, 2017 GameObject burner = aS.getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().equals("Incense burner")); if (burner.interact("Re-light")) { //add sleep until } wont work Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.