quant 9 Share Posted May 12, 2021 Morning all, In a variety of time and movement sensitive actions I'd like to 'pre bake' an interact with right click. For example in an agility context, I may have a reliable and stable location of an obstacle which I would like to interact with in a few ticks, but which will be moving or hard to see during the intermediate time. As a human player, I can right click on the obstacle, and hover over the intended interaction. This means the execution process for that interaction goes from target acquisition, mouse movement, and interaction, down to a single click. Is there a way to do this? Ideally I'd take the existing .interact() functionality, and have an analogue like .delayedInteract(), returning an object I could execute, which would then retain the error handling of the .interact() pipeline. Many thanks, Q Link to comment Share on other sites More sharing options...
Pandemic 2675 Share Posted May 12, 2021 Your specific suggestion is very interesting, and may be something I look into in the future. For now though, you can do something like this: if (Mouse.click(objectToHover, true)) { // Second parameter makes it a right click Menu.mouseOverAction("Climb-over"); // Replace with your action sleepUntil(this::isReadyToInteract, 10000); Menu.clickAction("Climb-over"); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.