elliottdehn Posted April 30, 2015 Share Posted April 30, 2015 This is my code: List<RS2Object> doors = this.script.objects.getAll(); RS2Object theDoor = null; Position myDoorCHANGE = new Position(7264, 11595, 0); for (RS2Object potDoor : doors) { if (potDoor.getId() == 13101 && potDoor.getOrientation() == 0 && potDoor.getPosition().equals(myDoorCHANGE)) { theDoor = potDoor; break; } } if (theDoor.isVisible()) { while (theDoor.exists()) { theDoor.interact("Open"); } } else { this.script.camera.toEntity(theDoor); while (theDoor.exists()) { theDoor.interact("Open"); } } but the problem is "theDoor" is null after the for-each method. Wat do? Quote Link to comment Share on other sites More sharing options...
Diclonius Posted April 30, 2015 Share Posted April 30, 2015 (edited) Just go to the in game options menu and set the doors to always be open. Edited April 30, 2015 by Diclonius 2 Quote Link to comment Share on other sites More sharing options...
elliottdehn Posted April 30, 2015 Author Share Posted April 30, 2015 oh wow i didn't know this was a thing. thanks! Quote Link to comment Share on other sites More sharing options...