I'd like to make a small mod that despawns certain types of creatures when they die. I was wondering what the best way of doing this is, in terms of something I can put into the creatures' scripts. It would be even better if I could make the conjuration desummoning animation play too... It would be preferable if the creatures were removed entirely from the save file (at least after a period of time passes), since having them just sitting there being invisible could cause problems once there are heaps of them around, I imagine.
Does anyone know how to do this? I've examined some scripts from CreaturesX, but I'm not clear on the best method.