Condition_HasInInventoryObjectDetailType
Description
Checks if any child object in the BaseObject's inventory matches the specified ObjectDetailType. With Equal, returns true if any child has the given type; with NotEqual, returns true if any child does not have the given type.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The inventory owner to search through |
| CompareType | Equal: any child matches the type. NotEqual: any child does not match the type. |
| S1 | EB2GameObjectDetailType enum name to check against (e.g., Food, Book) |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if inventory contains any Food type object | Self | HasInInventoryObjectDetailType | Equal | Food |
| Check if inventory contains any non-Book type object | Target | HasInInventoryObjectDetailType | NotEqual | Book |
Back to Command FinderSearch and filter all 491 Script Condition documents