Jump to content

How to interact with entities when player is in combat


Recommended Posts

Posted

The interact() API is not very reliable when player is under attack. It is not moving the mouse and returning false from the method. I have tested executing InteractionEvent and getting similar results 

I have also tried ClickMouseEvent with EntityDestination as well as simply getMouse().move and click but they still do fail to click an object quite often

What is the preferred way to interact with other entities when player is in combat?

Posted
6 hours ago, Slick said:

The interact() API is not very reliable when player is under attack. It is not moving the mouse and returning false from the method. I have tested executing InteractionEvent and getting similar results 

I have also tried ClickMouseEvent with EntityDestination as well as simply getMouse().move and click but they still do fail to click an object quite often

What is the preferred way to interact with other entities when player is in combat?

It's probably something with your code, because interaction code does not care about being in combat or not...
Share some code and let's see what's wrong :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...