Resurrect all Dead Players in an Area

Wanting to put a script on a creature’s death event that will resurrect all dead players in the same area.

I know I need to do a check for all the players in the area, but how would you check if they are dead? By HP = 0? and then apply the effect if they are dead?

eEffect = SupernaturalEffect(EffectResurrection());
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);

GetIsDead()

however you actually don’t need to check it, you can apply it to all players, it won’t have any effect on alive players

1 Like

Good to know, thanks!