LootInventorySlots(object, object, int, int)

Loot all the droppable items from the inventory slots of the victim into the inventory of the corpse object.

void LootInventorySlots(
    object oVictim,
    object oCorpse,
    int bDecay = TRUE,
    int bDropWielded = TRUE
);

Parameters

oVictim

The object to take the equipped gear from.

oCorpse

Placeable corpse object to receive the looted items.

bDecay

Used to destroy the chest armor on oVictim after oCorpse is destroyed. (Default: TRUE)

bDropWielded

Determines where to put the weapons in oVictim's right and left hands. (Default: TRUE)


Description

Loot all the droppable items from the inventory slots of the victim into the inventory of the corpse object.

If bDropWielded is TRUE, the items the victim is wielding in their right and left hands will be dropped to either side of oCorpse. If set to FALSE, the items will be placed into oCorpse's inventory.



Remarks

Only valid, droppable, equipped gear will be moved from oVictim to oCorpse.

bDecay should probably be left at TRUE. The armor object is left on the corpse as it lays on the ground, dead. This way the player's see a dressed corpse instead of a naked corpse. With bDecay TRUE, then once the corpse is destroyed, so is the armor that was left on the corpse.


Requirements

#include "x0_i0_corpses"


Version

???

See Also

functions:  LootInventory
categories:  Inventory Functions


author: Mistress