PapaH 1 Share Posted April 14, 2022 I've tried quite a few different methods of trying to tell if your fighting an enemy with 0hp and nothing seems to work. Any hints? Thank you. Link to comment Share on other sites More sharing options...
PapaH 1 Author Share Posted April 14, 2022 if (getLocalPlayer().getCharacterInteractingWithMe().getHealthPercent() < 20) This is what I'm trying to use, but if enemy health hits 0, it no longer recognizes the enemy as fighting. Even if I use the game explorer. The NPC is removed from the list when it hits 0 HP even if the enemy isn't dead. Link to comment Share on other sites More sharing options...
BeepBoopBop 9 Share Posted April 14, 2022 Once an enemy is killed, "Character.exists()" returns false. There's probably a better way to get this info, but it's what I've been using. Link to comment Share on other sites More sharing options...
PapaH 1 Author Share Posted April 15, 2022 14 hours ago, BeepBoopBop said: Once an enemy is killed, "Character.exists()" returns false. There's probably a better way to get this info, but it's what I've been using. The enemies I'm fighting are still alive and fighting at 0 hp, I tried Character.exists() too, but it seems like the api removes the npc is removed from the game explorer even tho it still exists Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.