RemoveItemFromParty(object, string)

Removes the specified item from whichever member of the party has it.

void RemoveItemFromParty(
    object oPC,
    string sItemTag
);

Parameters

oPC

The character whose party will be checked.

sItemTag

The item to be found.


Description

Remove an item (tag sItemTag) from whichever member of the party containing oPC has it.

This function will only remove the first copy of the item it finds.

This function only checks PCs, not associates.

This function will destroy items marked with the plot flag.



Remarks

This function relies on GetItemPossessedByParty to find the item, as such it checks oPC first and then everybody else.

Also note that x0_i0_partywide is already included in x0_i0_common. So you will only need to include one, not both.


Requirements

#include "x0_i0_partywide"

Version

1.61

See Also

functions: GetItemPossessedByParty
categories: Inventory Functions | Party Functions


 author: Grimlar