Execute_DestroyInventoryChild
Description
Removes and destroys all child objects in the inventory that satisfy the specified condition. The condition is evaluated with Self as the inventory owner and Target as each child object.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The inventory or an object/character that owns an inventory |
| S1 | Condition Id used to filter which child objects to remove and destroy |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Remove all spoiled objects from a refrigerator | Target | DestroyInventoryChild |
| Remove all expired items from Self's inventory | Self | DestroyInventoryChild |
| Remove all objects matching a custom condition from inventory | Target | DestroyInventoryChild |
Back to Command FinderSearch and filter all 399 Script Execution documents