Condition_IsInTerritoryByImpactPoint
Description
Checks whether the location pointed to by the mouse cursor lies within a Common Territory that has the specified TerritoryTag. The impact point is determined by the mouse pointer position.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Fixed to Target. The condition is evaluated against the mouse impact point. |
| CompareType | Equal (point is inside the territory), NotEqual (point is outside). |
| S1 | The TerritoryTag of the Common Territory to check against. |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if the mouse cursor is inside a Common Territory tagged test1 | Target | IsInTerritoryByImpactPoint | Equal | test1 |
| Check if the mouse cursor is NOT inside a Common Territory tagged test1 | Target | IsInTerritoryByImpactPoint | NotEqual | test1 |
| Check if the mouse cursor is inside a Common Territory tagged ShopArea | Target | IsInTerritoryByImpactPoint | Equal | ShopArea |
| Check if the mouse cursor is NOT inside a Common Territory tagged ShopArea | Target | IsInTerritoryByImpactPoint | NotEqual | ShopArea |