I'm working on a mod. I tried your version in papyrus, but the killed enemies behave strangely: they hover in the air, then they dance a freestyle dance. I need a way to resurrect them so that they're dead, but they don't get up, they just lie there. I hope you understand.
The game is Fallout 4.