- Joined
- Jul 16, 2016
- Messages
- 21
- Thread Author
- #1
Hi Guys,
You have been a big help,
I have a question.
I have tried a number of different things to try and stop my Script from clicking on a GameObject again.
I am smelting and in between smelts, my players animation ID is set to -1, which then clicks the object again.
The code I have for clicking is below
public static boolean clickOnObject(GameObject object) {
if(Players.getLocal().getAnimationId() == -1){
object.click();
return Execution.delayUntil(() -> (Players.getLocal().getAnimationId() != -1), 2000);
} else
return false;
}
You have been a big help,
I have a question.
I have tried a number of different things to try and stop my Script from clicking on a GameObject again.
I am smelting and in between smelts, my players animation ID is set to -1, which then clicks the object again.
The code I have for clicking is below
public static boolean clickOnObject(GameObject object) {
if(Players.getLocal().getAnimationId() == -1){
object.click();
return Execution.delayUntil(() -> (Players.getLocal().getAnimationId() != -1), 2000);
} else
return false;
}