Condition_EnteredSiteHasTagByImpactPoint
Description
Checks whether the site containing the impact point (clicked / target location) has the specified site tag (S1).
Unlike EnteredSiteHasTag, this condition ALWAYS uses the script context's target location (impact point),
regardless of BaseObject or whether a target entity exists. Intended for ground/location click interactions
(e.g. ClickMove) where discrimination must be based on the clicked spot, not where the actor is standing.
By default, if the impact point is not on any site, the condition returns false.
If S2 is set to "EvaluateOffSite", the condition is evaluated even when the impact point is not on a site.
Parameters
| Parameter | Description |
|---|
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | Site tag to check for in the clicked site's tag list. |
| S2 | (Optional) Set to "EvaluateOffSite" to allow evaluation when the impact point is off-site. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|
| Checks if the clicked location's site has the "SiteTag_Beach" tag | Target | EnteredSiteHasTagByImpactPoint | Equal | SiteTag_Beach | |
| Checks if the clicked location's site does NOT have "SiteTag_Beach" | Target | EnteredSiteHasTagByImpactPoint | NotEqual | SiteTag_Beach | |