May 1, 20169 yr 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; ?
May 1, 20169 yr 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, 20169 yr by Explv
May 1, 20169 yr Author 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 !
Create an account or sign in to comment