I scripted the death of an NPC using "npc"->sethealth 0, but it seems to not work? The script is executed after a certain journal entry. It kills the NPC, and he's dead because he's also lootable, but he for some reason does not perform the corpse animation (He looks like he's alive, he's just standing there) and he is also repeatedly making grunting noises (Argh! Ah! etc etc) as if he were being hit.
The NPC is located in an interior. Could this be the cause? The NPC is Kaushad for refrence.