x0_i0_corpses

Library for creating corpses, blowing things up, etc.

NOTE: This file includes x0_i0_position.

Constants

NameValueBrief Description
CORPSE_DECAY_TIME120.0Time delay in seconds before decaying corpses vanish.
CORPSE_EXPLODE_TIME2.0Time delay in seconds before exploding corpses blow up.
sBombResRefx0_plc_bombThis blueprint is necessary for exploding corpses. It is an invisible, non-static object, named "Corpse"
sCorpseResRefx0_plc_corpseThis blueprint is necessary for lootable corpses. It is an invisible object with inventory, named "Corpse"

Functions

NameBrief Description
CopyItem2Internal function. Convenience function for copying objects properly.

This is a wrapper for CopyItem, that copies the status of the original item's plot flag and applies it to the new item.
DoActualKillingInternal function. If the victim is not dead, this sets their plot flag to FALSE and applies EffectDeath(TRUE).
ExplodeObjectBlow up an object with the given spell.
GetIsVictimDressedInternal function. This function is used to determine if the victim is the type of creature that "wears" its clothing, so we don't strip them naked.
GetNearestCorpseReturn the nearest corpse object.
KillAndExplodeKill and leave an exploding corpse.
KillAndReplaceDecayKill and leave a decorative corpse that will decay after a short while.
KillAndReplaceDecorativeKill and leave a purely decorative corpse (no name, not raiseable).
KillAndReplaceLootableKill and leave a lootable corpse.
KillAndReplaceRaiseableKill and leave a raiseable and selectable corpse.
KillAndReplaceSelectableKill and leave a selectable corpse.
LootInventoryStrip everything droppable in the regular, non-equipped, inventory.
LootInventorySlotsLoot all the droppable items from the inventory slots of the victim into the inventory of the corpse object.
RaiseCorpseRaise a given corpse from the dead with the given visual effect.
SetObjectIsDestroyableConvenience function to set an object to be destroyable.
TriggerExplodeObjectBlow up the nearest object with a matching tag with the specified spell.
TriggerRaiseCorpseRaise the nearest corpse from the dead.


  author: Mistress