Condition_ObjectCategory
Description
Checks the ObjectCategory of the specified BaseObject against a given category name.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The object to evaluate (resolved to a FB2GameObject) |
| CompareType | Comparison operator: Equal, NotEqual |
| S1 | ObjectCategory name to compare against (FName) |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if target object category is Furniture | Target | ObjectCategory | Equal | Furniture |
| Check if self object category is not Vehicle | Self | ObjectCategory | NotEqual | Vehicle |
Back to Command FinderSearch and filter all 491 Script Condition documents