SuippoKala Posted May 1, 2016 Share Posted May 1, 2016 if (npcs.closest(npcChompyBirdAlive) != null){ return State.KILL_CHOMPY; How do i make it so that it checks when there is an item on the ground, return to state KILL_CHOMPY; ? Quote Link to comment Share on other sites More sharing options...
Explv Posted May 1, 2016 Share Posted May 1, 2016 (edited) if (npcs.closest(npcChompyBirdAlive) != null){ return State.KILL_CHOMPY; How do i make it so that it checks when there is an item on the ground, return to state KILL_CHOMPY; ? if(getGroundItems().closest("whatever") != null){ return State.PICK_UP_ITEM; } else if(getNPCs().closest(npcChompBirdAlive) != null){ return State.KILL_CHOMPY; } Edited May 1, 2016 by Explv 1 Quote Link to comment Share on other sites More sharing options...
SuippoKala Posted May 1, 2016 Author Share Posted May 1, 2016 if(getGroundItems().closest("whatever") != null){ return State.PICK_UP_ITEM; } else if(getNPCs().closest(npcChompBirdAlive) != null){ return State.KILL_CHOMPY; } It works, thank you so much ! Quote Link to comment Share on other sites More sharing options...