- Joined
- Dec 23, 2015
- Messages
- 1,104
- Thread Author
- #1
Not much explaining to do, both of these return null (atleast for gameobjects)
For the player.getTarget() I used devToolkit and saw that when woodcutting player.getTarget never shows the tree
For Mouse.getTarget() i used code which also only returns null (even when forcing my mouse on an object)
resulting log:
For the player.getTarget() I used devToolkit and saw that when woodcutting player.getTarget never shows the tree
For Mouse.getTarget() i used code which also only returns null (even when forcing my mouse on an object)
Code:
nteractable mouseTarget = Mouse.getTarget();
bot.getLogger().debug("Mouse target: "+mouseTarget);
if (mouseTarget != null) {
........
}
bot.getLogger().debug("No target");
00:04:32 DEBUG Trying to hover mouse over Deposit chest [2759, 2695, 0]
00:04:35 DEBUG Mouse target: null
00:04:35 DEBUG No target
00:04:35 DEBUG Trying to hover mouse over Deposit chest [2759, 2695, 0]
00:04:38 DEBUG Mouse target: null
00:04:38 DEBUG No target
00:04:38 DEBUG Trying to hover mouse over Deposit chest [2759, 2695, 0]
00:04:41 DEBUG Mouse target: null
00:04:41 DEBUG No target
00:04:41 DEBUG Trying to hover mouse over Deposit chest [2759, 2695, 0]
00:04:44 DEBUG Mouse target: null
00:04:44 DEBUG No target