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
| Parameter | Description |
|---|---|
| BaseObject | The entity whose current location is used to find the entered site (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | Site tag to check for in the site's tag list. |
| S2 | (Optional) Set to "EvaluateOffSite" to allow evaluation when not on any site. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Checks if Self's current site has the "Commercial" tag | Self | EnteredSiteHasTag | Equal | Commercial | |
| Checks if Target's current site does NOT have the "Restricted" tag | Target | EnteredSiteHasTag | NotEqual | Restricted | |
| Checks if Self's site has "Residential" tag, even if not on a site | Self | EnteredSiteHasTag | Equal | Residential | EvaluateOffSite |
Back to Command FinderSearch and filter all 491 Script Condition documents