EffectDeath() NWScript command creates an effect that kills the creature to which it is applied. It can also be applied to placeables, in which case the placeable will be destroyed. In either case, the plot flag has priority and can save the object from death/destruction. This effect must be applied instantly (not temporarily or permanently).
The kill is credited to the object running the script when this effect is created.
effect EffectDeath (int nSpectacularDeath=FALSE, int nDisplayFeedback=TRUE