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
How to get NPCs hitpoints
in Scripting Help
Posted
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