Condition_IsSiteHasObjectTemplateTag
Description
Checks whether the site (where the BaseObject is located or at the target location) has objects with the specified ObjectTemplateTag. If the BaseObject is a valid entity, its location is used to find the site. Otherwise, the target location from the script context is used.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The object used to determine the site location (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | ObjectTemplateTag to search for within the site. |
| S2 | (Optional) StateGroupId to filter objects by current state. None = no state filtering. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Checks whether self's located site has objects with tag "Furniture" | Self | IsSiteHasObjectTemplateTag | Equal | Furniture | |
| Checks whether target location's site has objects with tag "Electronics" | Target | IsSiteHasObjectTemplateTag | Equal | Electronics | |
| Checks whether self's located site does NOT have objects with tag "Tool" | Self | IsSiteHasObjectTemplateTag | NotEqual | Tool | |
| Checks whether self's site has "Furniture" objects in "Dirty" state | Self | IsSiteHasObjectTemplateTag | Equal | Furniture | Dirty |
Back to Command FinderSearch and filter all 491 Script Condition documents