Skip to main content

Condition_EnteredSiteHasTag

Description

Checks whether the site at the entity's current location has the specified site tag (S1). By default, if the entity is not on any site, the condition returns false. If S2 is set to "EvaluateOffSite", the condition is evaluated even when the actor is not on a site (in which case hasTag will be false and the result depends on CompareType).

Parameters

ParameterDescription
BaseObjectThe entity whose current location is used to find the entered site (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).
S1Site tag to check for in the site's tag list.
S2(Optional) Set to "EvaluateOffSite" to allow evaluation when not on any site.

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Checks if Self's current site has the "Commercial" tagSelfEnteredSiteHasTagEqualCommercial
Checks if Target's current site does NOT have the "Restricted" tagTargetEnteredSiteHasTagNotEqualRestricted
Checks if Self's site has "Residential" tag, even if not on a siteSelfEnteredSiteHasTagEqualResidentialEvaluateOffSite