Skip to main content

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

ParameterDescription
BaseObjectThe object used to determine the site location (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).
S1ObjectTemplateTag to search for within the site.
S2(Optional) StateGroupId to filter objects by current state. None = no state filtering.

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Checks whether self's located site has objects with tag "Furniture"SelfIsSiteHasObjectTemplateTagEqualFurniture
Checks whether target location's site has objects with tag "Electronics"TargetIsSiteHasObjectTemplateTagEqualElectronics
Checks whether self's located site does NOT have objects with tag "Tool"SelfIsSiteHasObjectTemplateTagNotEqualTool
Checks whether self's site has "Furniture" objects in "Dirty" stateSelfIsSiteHasObjectTemplateTagEqualFurnitureDirty