KillAndReplaceDecay(object)

Kill and leave a decorative corpse that will decay after a short while.

void KillAndReplaceDecay(
    object oVictim
);

Parameters

oVictim

The object to slaughter.


Description

Kill and leave a decorative corpse that will decay after a short while.

Despite the name, can be used in an OnDeath script; it won't kill the victim twice.



Remarks

This function starts out by calling KillAndReplaceDecorative. Which will kill oVictim then and leave a purely decorative corpse (no name, not raiseable).

Next up, there is a 2 second delay before SetObjectIsDestroyable calling on oVictim. Which sets them to be destroyable.

oVictim is destroyed via a call to DestroyObject with a 2.2 second delay. All gone!


Requirements

#include "x0_i0_corpses"


Version

???

See Also

functions:  KillAndExplode | KillAndReplaceDecorative | KillAndReplaceLootable | KillAndReplaceRaiseable | KillAndReplaceSelectable
categories:  Action on Object Functions


author: Mistress