JagexPlease 0 Posted February 27, 2019 I can't seem to get the door gameObject, it just returns a null pointer exception. If I try and add the door as a passableObject it just doesn't seem to get it. Any ideas on how to get around this? Preferably in an elegant way. I guess I could walk to a specific spot, put the camera in a specific space and click the area of the door. But that feels a bit janky.
Evil Bob 5 Posted February 27, 2019 2 hours ago, JagexPlease said: it just returns a null pointer exception It returns null, which can be checked so a null pointer exception doesn't get thrown. Show some code if you want to get help.
JagexPlease 0 Author Posted February 27, 2019 Yeah I can check it, but that doesn't help actually interacting with the door itself. Meaning the bot just chills outside doing nothing.
Evil Bob 5 Posted February 28, 2019 8 hours ago, JagexPlease said: Yeah I can check it, but that doesn't help actually interacting with the door itself. Meaning the bot just chills outside doing nothing. 8 hours ago, Evil Bob said: Show some code if you want to get help.
NovaGTX 106 Posted March 1, 2019 Fill in the respective parameters for your application but this should work. GameObject Door = getGameObjects().closest(door -> door != null && door.getName().equalsIgnoreCase("DoorNameHere") && door.getTile().equals(new Tile(420, 6969)));
Recommended Posts
Archived
This topic is now archived and is closed to further replies.