Skip to main content

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

ParameterDescription
BaseObjectFixed to Target. The condition is evaluated against the mouse impact point.
CompareTypeEqual (point is inside the territory), NotEqual (point is outside).
S1The TerritoryTag of the Common Territory to check against.

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if the mouse cursor is inside a Common Territory tagged test1TargetIsInTerritoryByImpactPointEqualtest1
Check if the mouse cursor is NOT inside a Common Territory tagged test1TargetIsInTerritoryByImpactPointNotEqualtest1
Check if the mouse cursor is inside a Common Territory tagged ShopAreaTargetIsInTerritoryByImpactPointEqualShopArea
Check if the mouse cursor is NOT inside a Common Territory tagged ShopAreaTargetIsInTerritoryByImpactPointNotEqualShopArea