Jump to content

Valkyr

Members
  • Posts

    1433
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by Valkyr

  1. npc.getHealth() ?

     

     

    You should really learn how to read the API documentation, which this site provides you in the navigation bar. I'm not a script developer, but as a programmer, I can dig into the API, find the NPC class's method summary and see that it inherits a getHealth() method (as Apaec mentioned) from Character.

    getHealth returns the health as a percentage, I think he means to get the actual number of hitpoints remaining. There is no way to do this, only for players by getting the skillTracker.getDynamicLevel(SKILL) method. Maybe someone else needs to read the API :doge:

     

    18b9955faf.png

    • Like 1
×
×
  • Create New...