Condition_HasInInventoryHasObjectTag
Description
Checks if any child object in the BaseObject's inventory has the specified object tag. With Equal, returns true if any child has the tag; with NotEqual, returns true if any child does not have the tag.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The inventory owner to search through |
| CompareType | Equal: any child has the tag. NotEqual: any child does not have the tag. |
| S1 | Object tag name to search for (e.g., Food_Ingredient) |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if inventory contains any object with Food_Ingredient tag | Self | HasInInventoryHasObjectTag | Equal | Food_Ingredient |
| Check if inventory contains any object without Food_Ingredient tag | Target | HasInInventoryHasObjectTag | NotEqual | Food_Ingredient |
Back to Command FinderSearch and filter all 491 Script Condition documents