Jump to content

Death animation click


Recommended Posts

Posted (edited)

So i have one simple killing script, it basically just clicks on wanted npc and loops it. But every time when npc is doing death animation it is still clicking it once again. I cant seem to fix my problem, can someone help me lol

 

Change

if (target != null && target.exists() && target.interact("Attack")) 

To

if (target != null && target.exists() && target.getHealth() > 0){

    target.interact("Attack")

You are interacting with the NPC in your if statement... which makes no sense

 

Edited by Explv
  • Like 1

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...