NPC Dead

Hey guys… I’ve been experiencing some problems with detecting if a npc is dead. I’ve tried Alive() and Health(), but those don’t work. I need a way so it can check if they are instantly dead within a very short time frame. If you can please help, that would be great :D…

[lua]
function IsDead(npc)

return npc:GetNPCState() == NPC_STATE_DEAD

end
[/lua]

[lua]
function _R.NPC:Dead()
return self:GetNPCState() == NPC_STATE_DEAD
end
[/lua]
So you can use it on NPC objects, rather than as a global. :3:

Isn’t GetNPCState() only Serverside?

-Edit-
Nevermind, got it :smiley: