have you experimented with spawncharacter(template)?
Maybe if characterdied then getcharactertemplate and spawn that one. Don't know if thats possible though
also, I broke my own testing mod a while ago and it respawned the dead enemies when I re-entered the level somehow. I thought it had something to do with the AAA-FirstGoal, or my mod just bugged out.

Good luck m8, great idea