Easy death detection for entities
This is a super simple question, but I'll ask it here anyways. What's the best way to detect whether an entity that a function is executing as has been killed? For example, I am making an awesome blood slash that leeches health when an entity dies from it, and I want to deal damage to a hit entity, check if that damage killed them, and heal the player if it did.