Back when I was
testing how to make things instantly die, I did touch upon a method that causes a creature to briefly leave a corpse behind which vanishes into a cloud of gas (see: Death Style: Heat / Cold Damage). You could probably apply it to a creature, but you'd have to make some concessions for the jankery involved. Here's how you'd do it (I think, I'm a bit rusty with all this
):
- Give your creature a homeotherm below standard temperatures (this will mean that your creature is naturally very cold)
- Set all the creature's materials to have a heat damage point and boiling point starting at regular temperatures
Essentially, the creature should be able to live because its homeotherm keeps its body from boiling away, but then when it dies it'll stop maintaining its temperature, and it's body will warm up and start boiling away.
Alternatively, you might be able to make a dummy material with heat damage points and boiling points at zero, and have the creature spawn a boulder of that material as an item corpse. That might work, but I forget if the game checks for temperature updates on items that aren't being interacted with. If it does work, that'll be a cleaner method that doesn't rely on you making the creature very cold, and their materials essentially unusable, but it does lose the effect of seeing the corpse turning into smoke.
Also, there is a way to maintain the corpse and also cause the fog around corpse when the creature mets its demise?
As far as I know, it's an either/or situation. If you really want that sort of effect, you could possibly hack it so that its blood instantly boils, or it releases some sort of smoke from its wounds. Though that would mean the effect starts when it's alive and fighting, and there's no guarantee that it'll always happen when fighting them if they die without being cut (plus, trying to fight in a constant cloud of smoke is annoying!).