I've run into a little problem with NPCs casting resurrection, for some reason when I use the command GetIsDead and try to see if it's true, it doesn't do what I'm asking it to do in the following if statement
object oTESTaxb;
oTESTaxb = GetNearestObjectByTag("TESTaxb", OBJECT_SELF);
oTESTaxb = GetNearestSeenFriend(OBJECT_SELF);
if(GetIsDead(oTESTaxb)==TRUE)
{
ActionCastSpellAtObject(SPELL_RESURRECTION, oTESTaxb);
}
The creature that's supposed to be casting resurrection is a cleric and has the spell resurrection known and memorized in its slots, at least it should because that's what I set it to. 20 Resurrections memorized.
I also have the SetIsDestroyable set to FALSE, TRUE, TRUE so it can be raised properly, I tried using a test raise dead misc on one of the fallen npcs and it worked just fine.
I've also run into another problem with harm not healing undead when one NPC casts it on another, as a friendly action. It's strange because when they cast negative energy burst at themselves or close to themselves that heals them just fine.