Skip to main content

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

ParameterDescription
BaseObjectThe inventory owner to search through
CompareTypeEqual: any child has the tag. NotEqual: any child does not have the tag.
S1Object tag name to search for (e.g., Food_Ingredient)

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if inventory contains any object with Food_Ingredient tagSelfHasInInventoryHasObjectTagEqualFood_Ingredient
Check if inventory contains any object without Food_Ingredient tagTargetHasInInventoryHasObjectTagNotEqualFood_Ingredient